-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 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
30
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 i # faster, goes only from package-lock
before_script:
- psql -c 'create database "prideflags-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: pr1deflags
# the secure key indicates an encrypted value; see README
api_key:
secure: XmcvCIArJfcylzY5NqSOPRLIxkVvZPToV7ZHMZY5DP+1aNguGzdn0i/2xRTIX0pn2BWUvcssxTFQ95V8CmjyRG8wkdDFRf0NsgGKSt60VJ0tF/uXqHvqcBZPyF074kqWlqVgIFssYl7qQ2ZQVUwD1KG1DFKRDvAbx3df2wVFhI0dERzuERb5c5I8to0eAn8wzMTAjlbI+vujkoayCqr7uZ+ORhs38zNgjtS9g/ja/sULz6N87wJtbWuKyJKTDC8i5aj3+zdfC97Y1bHgl7htBzz83G1HZQSzpWzRPB9iT15t42PFWRkjsUkMwiPRtTTpLpTtVsYlz4VeLwJRU5CtTRoyZ6NwgSwlDEcCmzFoL/XKUt2gZi2ef2lMrfzlo3QD78vAs4Ha+OD43qbwPTCdKJ8Ul8NlgYRhkFkLc75tWHaI2/os0umLeMdVaqMoTzkap4gnKEq2x0pC1KBTxYAC4PwW870ANm8VkQIeOKPB+w4jNNglKl3wQHc+kHOnqedBeeRmr8vK/fLcz6oNO8zBvwakFuorE4UPPJoO7740G3PXbtJAJZqHdXepZDfZxPX5l2rHCRxw2tjZqrerAJl4SR9vBxtyXarsxGyZ3Qu/BYWJJEqsKgEZH5Sa008XhUWYm2xPMzsZ4/xwDff+pcpoLKv0Ii36Xfh5URsZOkfi2Wg=