-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (28 loc) · 1.74 KB
/
.travis.yml
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
language: node_js
node_js:
- node # uses most recent stable node version
services:
- postgresql # starts up postgres
addons:
postgresql: '9.6' # highest available postgres version on Travis
dist: trusty # uses trusty environment
sudo: false # when on trusty, uses Docker containers for speed
notifications:
email:
on_success: change # default: change (only when going from broken to fixed)
on_failure: always # default: always (which is annoying, as it should be)
install:
- npm ci # faster, goes only from package-lock
before_script:
- psql -c 'create database "deployment-exercise-test";' -U postgres # remember to change this name if you change it elsewhere (e.g. package.json)
before_deploy: # omit node_modules, since we set skip_cleanup below
- rm -rf node_modules
deploy: # see README for details on these keys
# prevents travis from deleting the build
skip_cleanup: true
provider: heroku
# app should be your heroku app name; see README
app: evolution-deployment-exercise
# the secure key indicates an encrypted value; see README
api_key:
secure: VlRODExf2t3C8M1n+m/hvasmbRM9HViR+OdnAsEfo3VXv6Wv3umvHYtkVjIMl37X/cdQmd1IwaVdylJCXuF3al1arat+P5wZCcwxpUk87Acm9KtxP7t0dAqG5EdWRcHY9Koho00mMO95fqzUncJJgMIjbXzFIKQce40Rrl3n5/6n8qGnQH1m4PjLM4NyeKaOFi21ad053/m+dN8GGsKIyYO2xzm/UP6iqh1TjvAHgvR4VKVJNDOeK046J7yXWI7LbD4Tgx+5gXoeCYnRv1PSo0Zeuog2E8joExl3o4Eli2eW+anCn+kzsY/gGVXaFhVvM27dHDAHv3RyWo6/4C+xIYWbAcE74blBKM49P7E73v+iqNFR70IjPGtTKrhBEqYamlQEuu2/w1EKkYH5BVml3S8F8J/SOcKB5BxCIPilQPOaf3uTgJwivkBdukaI9pbVmcKsHd0uApVLOry9mSxLLDw1Na/0jCUe+4x4ylZnHzzxbfDcOJy+CCpim55omHEaiiAGcE1ofYv20zr4MPqUbZ3vu1N+pQY03qLqlzKME05bIy1obIGWjN0vP/Sz2eUakGt2b5Ptzkn72VnSSm3oN/vyobtAjysGLnuyXqEo1yx9EYTdZUNFPF3tKUQNMLhgpPoHaMHAAjnHHBcCfZLyid2O0fN23HfJafDKeFcXDPI=