-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
32 lines (32 loc) · 1.72 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
29
30
31
32
language: node_js
node_js:
- 12 # uses version 12
services:
- postgresql # starts up postgres
addons:
postgresql: '10' # recent postgres version on Travis
dist: xenial # uses xenial environment
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 "graceshopper-test";' -U postgres # remember to change this name if you change it elsewhere (e.g. package.json)
script:
- npm test # test the code
- npm run build-client # make the bundle
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
on:
branch: master
skip_cleanup: true
provider: heroku
# app should be your heroku app name; see README
app: gg-graceshopper
# the secure key indicates an encrypted value; see README
api_key:
secure: LaXlo2gSvuyCNUsRbHZzQ06ylcVUTi+kw5KlZ+NcafQrp3b7jaKRNsZm/ZPuZjgFo2Fsp4zY2kf5Hw8WdV1SElGMO/cX9+ALNuvkwIH3xmGKd1gHWWZdTlgjYjBRzt7JgwW4pr9hoxkXR8MJI7ZDQmBxR/qeCr1lMoBzg7tKbeuJyJ9U12T6sc/7eNCmUNyAUHyJi537JrBFtIsn72fVZ8bbEObOcMhwAc2t6Zmyb/9l2F1NHgcbeym4cGO7JPA/FUvFtWequHojc/UmQtDgyMh191zvj55WO1sX3i0cG30Wk8kYPJw7559DN5EGxCuot1NuDglQKmWZAI1p0xVwKtIBNUxl2QnUcznHerYyc7MjK/ZWde1z8ItEmKwT1Q0ryZBUfQ7wi6RCo8gGCJK249ou6b2g69fATl5uAfISsH36uUChk9IEl4ab4n2+tHbaIkMODVE2mU3hSBIkxv9yJhQv6k5vvRdojSGtwAcTvTtp+y+Pak/Wa7oYIVOi/ZyQuUy2vOMftkWwGqiS2dr6ww39KHccq2f9I+YW8WNjWuex+e6kdcU0lSi2X2JjS5GhpFCBSXJi/FTHMDYeyvzdC+I0OvIkyHWFaE0jTIWodES6XNNlYCI4ghFQJc6hrQkp3XK7yWLvLhM8nfpdyVUvz9A8DSfnFkSHPFqQ5Pa3SP4=