-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
37 lines (37 loc) · 1.88 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
34
35
36
37
language: node_js
node_js:
- 12 # uses version 12
services:
- postgresql # starts up postgres
addons:
postgresql: '9.6' # recent postgres version on Travis
sudo: true
apt:
packages:
- postgresql-9.6-postgis-2.3
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:
- sudo apt-get install postgresql-9.6-postgis-2.4 postgis -y -q
- psql -c 'create database "datacity-test";' -U postgres
- psql datacity-test -c "CREATE EXTENSION postgis"
# 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: data-city
# the secure key indicates an encrypted value; see README
api_key:
secure: FSZJySlacWiEEGVVVZCW6Kv+tt7fG8ru8IfTl5esNp1XizIssfoq79414fI/5JhPBsnI2fxnz6QI+PW+6KTYLISBel1zlB0ABhetImHsTxzXrHUsdrilw4ID79+GBbyPYJXUg2TsVJuacXfuKPXxhXPMXRYTkpkaOBzxXq4c9eme1bGDZMQvCtxKu+Pkb5NepHnFAj1uQEAoeTAryqNhBH58K71jkKO2bYcU8OERvT9Vz2/xXmGfWNHE3RTE1st2TLIrQO0zZ3D/2oE6kXqHot/QFn6c+ATbZjqZ4S+8i+7bzEqhNhzwXNx7AyR5Z6R/chw8G5NmDHSNXBNx5Y3D9sRRWTzM+xPEHY5wE9YeUJs2NYeLSNHqd8tY7mejOQjX5BrgN1wpBI6+1b0r7i9WHDZLMYa3T9Ri4rWhAW8sUkvxEIi70Td3b798wVrYw1igmr/KYS/3qq8Jt0hlR0/cw2yEoz5ZkmGwgCkmYM3ZVUfc9XJ0wAFWsVkBTkX7LN808SUdEpCM+rpgPYjwK/eeHmC9IiraqMN33C3V3mPVn0jeXf0V/P1ji7wOM7F54Juq8VfnqD42RUnIsfxOXYhTIfOMKI+5RYUSZNVvEz6bLX8fW96psWsH6SmCNZUGiuSDoAminHezWvjXR90mx0RJFxSM8aYqs/cSWRyvYVkbT3s=