.travis.yml
language: node_js
node_js:
- 10.15.3
cache:
directories:
- node_modules
env:
global:
- CC_TEST_REPORTER_ID=f3ca8c4bd883f74fe4cfe5806bb189f863ea3e0d269494aa3e99c007f2d6b9d0
before_script:
- export CC_TEST_REPORTER_ID=f3ca8c4bd883f74fe4cfe5806bb189f863ea3e0d269494aa3e99c007f2d6b9d0
- 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 install
- npx jest -u --coverage
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT