Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit 7b8a6ea

Browse files
authored
Merge pull request #411 from pharindoko/feat/add-cicd-deployment-test
ci(deployment): test deployment and removal of solution in aws
2 parents 42fa1ba + d4b3c72 commit 7b8a6ea

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.travis.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dist: trusty
1+
dist: bionic
22
git:
33
depth: false
44
language: node_js
@@ -12,6 +12,7 @@ notifications:
1212
node_js:
1313
- '10'
1414
before_install:
15+
- pip install awscli
1516
- git log $(git describe --tags --abbrev=0)..HEAD --oneline
1617
- echo $COMMITCOUNT
1718
install:
@@ -37,6 +38,16 @@ jobs:
3738
- npm run test
3839
before_script: cd packages/server
3940
name: test-server
41+
- script:
42+
- npm run build
43+
- bin/run --version
44+
- npm run deploy
45+
before_script:
46+
- make fake-credentials
47+
- cd packages/cli
48+
after_script: npm run remove
49+
name: deploy-cli
50+
4051
- stage: release
4152
if: (type = push AND branch = master)
4253
before_script:

packages/cli/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
8080
"test": "echo NO TESTS",
8181
"start": "bin/run run ../../db.json",
82-
"deploy": "export NODE_ENV=local && bin/run create-stack ../../db.json",
82+
"deploy": "bin/run create-stack ../../db.json -i=us-east-1 -d='serverless deploy test' -n=sls-deployment-test -y",
83+
"remove": "cd sls-deployment-test && aws s3 rm s3://jsonsls-sls-deployment-test-dev/ --recursive && sls remove",
8384
"version": "oclif-dev readme && git add README.md"
8485
},
8586
"types": "lib/index.d.ts",

0 commit comments

Comments
 (0)