-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
32 lines (32 loc) · 1.73 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:
- node # uses most recent stable node version
services:
- postgresql # starts up postgres
- redis-server
env:
- DB=postgresql
- REDIS_URL='redis://localhost:6379'
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 "alythia-test";' -U postgres # remember to change this name if you change it elsewhere (e.g. package.json)
# - redis-server
# - redis-cli shutdown
before_deploy:
- npm run build-client # make the bundle
- rm -rf node_modules # omit from the tarball, since we skip cleanup
deploy:
skip_cleanup: true # prevents travis from deleting the build
provider: heroku
app: alythia # see README
api_key:
secure: "EyMgB4/DCGH8zJhC/zRB3QY4Ck2kjgVTb7mZg9y+pGNagtBNlnHggVxYalnzrLnEl8rydbGgcDC3Ol2Axuv9N10VxJoY9xUFfNEjorqpbFclskAZUKSedHj8fo4S6MxT2IQndGcCCZ6HMWx9Aw5tHPfUSycce4gpTH4qVliiMcfX9wnQ06+5uag2ItVlYevdGiXY2EHIuJ2v0QCBFh/YROPYf+k28+PqYWnj2VIqKKg+1cLAVawmsiDLD+Ij6rYe/38MKv1PE5VIYkZkYMzlow8HmlRQAAZWLlA+sNg2xy5aFixB8wk9zL2lUlnjWcxDHA57YzcgpjTNAbauobDqO/v4wQ1xk+JzK6y8bjfzLPTtZXTlXpH/WaA0gbIdOCYYo6Xf+AjFRAK0eat+JQuW9gA78jqHE3R6h6VJIrbo+sUqBnOkAu43F3OecfwaSTs1xbEdxQjVWL2ZQYyq5bJsQaFcEAzkWWcXOue8O1P28M87wmzl49S+l7CBUK0Fue94pNXGsw05sikGD5fIVmF7iVe+ryHjkvzZ7rEpO2DxXTP3bmODhMg2zWJBy1D71NMhW3ioKXD2NQXhM9ojlrpC5TfjnK6SC7eLnAYjGaeC7RW8acW9ANXKbFjKad1c9q+fBw3UtjaEacsh5U85WbCtpbbBncR+DM6SWUz7/9oFbwI="