Add AWS Elastic Beanstalk deployment plugin to travis config
Run npm release script before deployment Upgrade to node v8 in travis job
This commit is contained in:
parent
b9380f9f20
commit
bbf24d6c53
32
.travis.yml
32
.travis.yml
@ -1,13 +1,35 @@
|
|||||||
sudo: false
|
sudo: false
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "6"
|
- "8"
|
||||||
before_script:
|
|
||||||
- mongo test_db --eval 'db.addUser("travis", "test");'
|
env:
|
||||||
|
- NODE_ENV=integration MONGO_URI=127.0.0.1:27017/test_db MONGO_USER=travis MONGO_PASS=test
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
- build@mailvelope.com
|
- build@mailvelope.com
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- mongodb
|
- mongodb
|
||||||
env:
|
|
||||||
- NODE_ENV=integration MONGO_URI=127.0.0.1:27017/test_db MONGO_USER=travis MONGO_PASS=test
|
before_script:
|
||||||
|
- mongo test_db --eval 'db.addUser("travis", "test");'
|
||||||
|
|
||||||
|
before_deploy:
|
||||||
|
- npm run release
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
skip_cleanup: true
|
||||||
|
provider: elasticbeanstalk
|
||||||
|
access_key_id: $AWS_ACCESS_KEY
|
||||||
|
secret_access_key: $AWS_SECRET_ACCESS_KEY
|
||||||
|
region: eu-west-1
|
||||||
|
app: keyserver
|
||||||
|
env: keyserver-prod
|
||||||
|
zip_file: release.zip
|
||||||
|
bucket_name: elasticbeanstalk-eu-west-1-936909551620
|
||||||
|
bucket_path: keyserver
|
||||||
|
on:
|
||||||
|
repo: mailvelope/keyserver
|
||||||
|
branch: master
|
||||||
|
Loading…
Reference in New Issue
Block a user