-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
33 lines (33 loc) · 913 Bytes
/
.travis.yml
File metadata and controls
33 lines (33 loc) · 913 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
33
language: node_js
node_js:
- "8.6.0"
before_install: if [[ `npm -v` != 6* ]]; then npm i -g npm@6; fi
before_script:
- npm install
script:
- npm run build
- npm run test
cache:
directories:
- "node_modules"
before_deploy:
- rm -rf .tmp
- rm -rf node_modules
- export ELASTIC_BEANSTALK_ENV=peerquery-travis-build-${TRAVIS_BRANCH}
- zip -r --exclude=\*.git\* --exclude=\*test\ peerquery-travis-build.zip
.
- export ELASTIC_BEANSTALK_LABEL=git-$(git rev-parse --verify HEAD --short)
- export ELASTIC_BEANSTALK_DESCRIPTION=https://github.com/peerquery/beta/tree/$(git rev-parse HEAD)
after_deploy:
- rm peerquery-travis-build.zip
deploy:
provider: elasticbeanstalk
zip-file: peerquery-travis-build.zip
skip_cleanup: true
access_key_id: "$access_key_id"
secret_access_key:
secure: "$secret_access_key"
region: "$region"
app: "$app"
env: "$env"
bucket_name: "$bucket_name"