-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (30 loc) · 807 Bytes
/
.travis.yml
File metadata and controls
32 lines (30 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: node_js
node_js:
- '8'
script:
- npm run build
- if [ -d ".ebextensions-$TRAVIS_BRANCH" ]; then cp -r .ebextensions-$TRAVIS_BRANCH build/.ebextensions; fi
- cd build; zip -r ../build.zip ./; cd -
deploy:
- provider: elasticbeanstalk
access_key_id: ${ACCESS_KEY_ID}
secret_access_key: ${SECURE_ACCESS_KEY}
region: "us-east-1"
app: "govotegso"
env: "Govotegso-dev-1"
bucket_name: ${BUCKET_NAME}
zip_file: "build.zip"
on:
branch: dev
skip_cleanup: true
- provider: elasticbeanstalk
access_key_id: ${ACCESS_KEY_ID}
secret_access_key: ${SECURE_ACCESS_KEY}
region: "us-east-1"
app: "govotegso"
env: "Govotegso-env-1"
bucket_name: ${BUCKET_NAME}
zip_file: "build.zip"
on:
branch: master
skip_cleanup: true