-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
37 lines (28 loc) · 850 Bytes
/
.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:
- "node"
env:
global:
- CC_TEST_REPORTER_ID=632b43c1e28b7b4d135a8ef761fe985fc5ecea97813660e4c682ae49479140eb
- DATABASE_NAME_TEST=ride_my_way_andela_test
- DATABASE_USER_TEST=postgres
- DATABASE_PASSWORD_TEST=
- DATABASE_PORT_TEST=5432
- DATABASE_HOST_TEST=localhost
services:
- postgresql
addons:
postgresql: "9.6"
before_script:
- psql -c 'CREATE DATABASE ride_my_way_andela_test;' -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:
- nyc --reporter=lcov npm run test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
cache:
directories:
- "node_modules"
after_success: npm run coverage