2016-05-25 14:13:49 +00:00
|
|
|
sudo: false
|
|
|
|
language: node_js
|
|
|
|
node_js:
|
2017-08-14 11:29:16 +00:00
|
|
|
- "8"
|
|
|
|
|
|
|
|
env:
|
2017-08-23 10:31:15 +00:00
|
|
|
- NODE_ENV=integration LOG_LEVEL=warn MONGO_URI=127.0.0.1:27017/test_db MONGO_USER=travis MONGO_PASS=test
|
2017-08-14 11:29:16 +00:00
|
|
|
|
2016-05-25 14:13:49 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
- build@mailvelope.com
|
2017-08-14 11:29:16 +00:00
|
|
|
|
2016-05-25 14:13:49 +00:00
|
|
|
services:
|
|
|
|
- mongodb
|
2017-08-14 11:29:16 +00:00
|
|
|
|
|
|
|
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
|