-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
30 lines (30 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
language: node_js
node_js:
- node # uses most recent stable node version
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 boilermaker;' -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
skip_cleanup: true
provider: heroku
# app should be your heroku app name; see README
app: grace-shopper-lovelaces
# the secure key indicates an encrypted value; see README
api_key:
secure: Yk8e/vZ1VKvk3/Faarwv1QqD6tuCc0i7Dqg9UqdNhd0/JhDMvFfblZRHwwlvCfi1fS6Z3XHvzY01Ddl4rAxjYWQp2HfG/smZwEomPs2j9QKMdZVBtchUyA+t4phEnTb4zyTEzGusxVfKlYBYnx42zakygHt/MFSDGkxS2fhbSM1odTaWjMc3RZjsG4QI1wROk+ARrQkS8G7D3tfEr9BMUobEUrs17fdCpru/pSli+Wb0Rm7vAMM4tHw2STCOm97dPnY+ffZiDEGpwN1qx+eyuuoYcFnFcnWCsHZxV69xARCIjEBGeMdaHc3zFAc9TIAvFimiyop4SMOUK+HoKrptf4GyJIL09uvf7VE+KO8G6/DdXkMDgZlfVkg/H8OdA358KObDWOsjsCLLNhIeYoff46NRWVgpmqbaf9KmdiAlFUKd+Fo+bdOblq4QESzveDt5NAQ4DMoqTLdsLuP6xW8Tw8+QgSbTXXJ5Z5iO48X8Ppq0gbbWw5SJ0+4eBW0R78hztCnx+CsJkfgYjol+aAfAFZkPMXgR3swalp4DrRPvKIjMx5p2DZfQPVCCqY1eNduu0pw5tmQ1+XSq9O/0Rox1ofwCVTWSGPcQMpqtywuVYAtmPVv1vOTSPDCtJM9c0Zz0IfZUofpF6X3UpO9YT1j3JFidnrvv3rgLTxAJX/nd40g=