forked from psyfercom/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 1.55 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
38
39
language: node_js
env:
global:
- CC_TEST_REPORTER_ID=d81e3aa75f9409a117901b091fc35106f0ebf9a147e3b8108f92c5a4913bfc0d
matrix:
include:
- node_js: '12'
cache:
directories:
- node_modules
install: yarn
after_success: yarn coverage
before_script:
- psql -c 'create database testdb;' -U postgres
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
- "./cc-test-reporter before-build"
script:
- yarn test
after_script:
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
services:
- postgresql
addons:
postgresql: '10'
apt:
packages:
- postgresql-10
- postgresql-client-10
before_install:
- sudo cp /etc/postgresql/{9.6,10}/main/pg_hba.conf
- sudo /etc/init.d/postgresql restart
deploy:
provider: heroku
app:
master: express-api-template
api_key:
secure: IZsokzJPsQ35yHoOZvsJrC0vfgN5Xso2uBRmWUDZWxOgGoCjiHQ1cpff/tyNOe6lgnNMw+IRHR146GOJWcxy380bWElF871Iy5sjf/P8Zwu9IQ+ltlJ0IOSjuJvW0+trhi8FBKKl8Cj0Rfi9yL+zU7azw6XfVhDFLjemHvfkMjDgGtL2cF9qBQPoNCm4b0I477NIk0pkKVl7pIFFLlOBgdy5bBCYIsmcgcWZ/lfnu7T86yQLT7QRsh2Ky6R5q62bwjxZqUn9qKP64iokfpdcZbi5LzUZ3TVCQBcWMVVLIG96nWJ6DUicL0mLdvMzwyz2kNj+WJCVVn4HaSLzkcEQis0RDbP2cr5I9xsHsoCtTQNRuJiBhYMtdE5Dv4ywNVJjbwGk7kZaq1bVoRzuX1gmEoofp2238q0OuHFnwuwjleZEq5vcwO80nQlHFHCDsciEoHmxcdG54pxMcmqTDXzGnULRkLRz3l1IhZsAPZmWuYQ+O2lVQVnnDSoaVT9qGwrff6SOu5ILJEj2oan3FB1F6I1FCx0AyRu2GdpqzcxsSAnUZzbcX9h4xSV5GcXh910qddys5iuuPs7WX6CfKEXfX033qNJC7hMVHjO509jvkZbPsw7BLdwqLAUejFwCL//gSL+NH0NegUVOrPkWNyskX0rPqPE1+lfKsSPMYwU2NQU=