-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
37 lines (36 loc) · 1.16 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
env:
global:
- CC_TEST_REPORTER_ID=f832d4a72486dfcbb351b642b79f71b397851349e87551ba3ae3042e1a6d6070
- SECRET_KEY=12345
- DB_HOST=localhost
- DB_USER=postgres
- DB_NAME=banka
- DB_PASSWORD=
- DB_PORT=5432
language: node_js
node_js:
- "stable"
addons:
code_climate:21acfee8bbd33492edde40b2c0bc50d994f97d19802bcc4f78f6d4ebb9c805e6
repo_token: nDJ8gGLCWBsyee7RvO0ocazAurzQKqYKQ
before_script:
- 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:
- npm run test
# - npm run coverage
after_success: npm run coverage
services:
- postgresql
before_script:
- psql -c 'CREATE DATABASE banka;' -U postgres
- npm run createTables
- npm install --save-dev coveralls
- npm install --save-dev [email protected]
- 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
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- coveralls < ./coverage/lcov.info