.travis.yml
language: node_js
node_js:
- stable
services:
- postgresql
env:
global:
- CC_TEST_REPORTER_ID=74be89c5053e497019a7c01fb35120e70983fb1c203a3a934082245f683a7502
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
install:
- npm install
script:
- npm run test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_success: npm run coverage