-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
30 lines (30 loc) · 1.7 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:
- 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 "retrospective-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: retrospective1972
# the secure key indicates an encrypted value; see README
api_key:
secure: kWbmd1RVHAg2pF1we4ZOkT/WW5vvh9+Ia1UBOqZT1TlYfFC1pT4fpyHGQMcIMVozBS9n3Fjd3GNaT74sy2KJtTDLKbGy+YCe3ZjCiAeARsZxMS0cpQqN/SdKkD4ql3AMo+/YJbDXyeBFmYx++vYhgZ2UZDlnt9ftzi8DgMKrsx/YiuCGOX3oTAQnntjwYK1HtqVFZPCkWFYDYg82K9QQJOf4h14qifjXcJ7D4XMAnRK/0fW1wiyZbEDCAlnXfNsGSYOdy10QUOOmhntAbm0CuDX+Vg9hXDHNTxHZN/mThDcUL4z8VJa6ZdpOTMQywNVe8tI8ZXIC7DGkT3ViYVN3qeN8HuKIFu1bbX/rGh1bBjMEwwmG2OjtO+rcYefHCAbJriSPdMMuj8ROu1NForoABtbhwgwCdw7L9jaCfU+7YVPBT0qW9a05q4obldRvBe/nImhlmhPTsMvmx08LoSRshx9z5QkEz6ZhvY5tsQ1srzPYDibIzmaLJMJEFiHdnerT8SwUodeFtVW9spIzih6XjJjSPWVJLMkt54A7oDDLod6aEo9Q0awQcDMYH2giwzAy+ZHU1X/7xPbX+l5lgblf73vTcqHaBPhqBY1u+0elO8Lk2SM0gcdq+MROIm6DxpYqf3rxE04qpSJGLg/zTaNHBhU0s95JnSllfCVtCKeww0Q=