forked from 2011-team-kungfutea/grace-shopper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 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
33
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 "grace-shopper-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
branches:
only:
- main
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: ufotofu
# the secure key indicates an encrypted value; see README
api_key:
secure: vf7FmTqR29o35jB5GAgCulxje30FxYTDoD+l2u6KInaJ1xIe6PdE9TTpgXUjX/BGeoI9isSCS7dj4gO1LTBzQ1nWlvB4VuUwIvyS63dgCEQeY+6J2T3ncbCjnSkNDTkNLum+ltqNum6MBWS2n0+Yv/avQLqPt2lnslxVOz2vklLhaWaE6OAwnfYzUGLowxRICyZpQ/Z41QNRjX43cK3ntBdAhDOPEn5kE6OelpZ81EKcHCboGnDlHLDdRWyavEPEsmdNuQ+aOHypMVVV64d29Qo/T6yr0qQV+fVV6UBZ8KwpLQb4WuxK2dyoIRJUWPojErok6k6X6Bnhi0iog8qOJArqvtOvhzC3R5wVSqVUrQ+YcM4hgVsXqJ/KTJ1ayAIAwjsEPlLwxhfDjPQUlqJTvvumXdCrevsgdI2x6PIoJADQSSSfdwQszUxGaM6GsngOFjCLVh4fa3NggtXEa7i2The54s/YBUNaHV7iYGcupbGYyDpdXIfl8NS8M1Ubum8aCZbbvBtz1qwyrgavADGl1rjoaTvM/EJheblyfdxmFqTpj3yxYa2z0tUbSQVhd0fAZQZvKJ5VdnUEwt3RG47CyLKgEJXf4b1K8Y5vSYXdmY6WrHFEMmcyfq7x7aY12Fjz08eYJAxeIp4ShAEiA43pG24gjhRrIY6BfRRU3PPaiwE=