-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
29 lines (29 loc) · 1.69 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
language: node_js
node_js:
- 14 # uses version 14
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 "lit-collective-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
skip_cleanup: true
provider: heroku
# app should be your heroku app name; see README
app: litcollective
# the secure key indicates an encrypted value; see README
api_key: UE+53RAcZO5iANb8Dt9knvT3QujVwEmmOUBE1UENPYPlqnDzO6GvG3Oph0LgOXt/uyJcHoWjZIj1xjyUnyWoL7Sx0sUUzCLdWfgCdHC6QQqrNLrdjIaxWL+vq0RpuvEzvJ7XOldOnQFzDiecu/6p8OZWMVPNEZ4VaMItNQzC1mzs4z/Tr8k9F3VpqkWI3kOGLwe3W/oG4bXdJOnu+7qNHO53dyXduonPDKwys2dUUSbjQdGV2864eIpKktO1z3f8CWMIGZuhg/xMeSB7kx2XXAgQh6ROV49neN5pY0HLCpVyQX71dsxeWG4XOMQf3jd0ppneNzw1ehNhlqvzLebCGJ42gQ7vFtkzQ9WRkslftOIN5w9QtRw98zogQl+zfSuLTp8kwzuYggXcAnGc5ek+Hgz9uEsoVEzdCHTIPVarz+uzttw3LVX9VnApbwB5LI1KXrsXyg0Z7e6O/BYXYvnpfvNVZWYkj3PlsO9jLxOgm7x99lLf0d+0NHkS8e/aYTq9HVD6K6CHSbN7ddsU1/G63K7G4Fs6GhCs1RgpSQlcyBY2CTxXvMxT07jezwKuNCEvBYr4IXARP9KL93IGaRpc9GaRKbHQSpGUTQRF+R+eBE54FoF2wEzlMMOHXll5JskONx6BcnMaLK3UWogzMQTfwEtb/voZRVKo6GjgekQtozw=