.travis.yml
language: node_js
env:
global:
- CC_TEST_REPORTER_ID=7f3152ef9ebb78c08cf7062fb16310d3c6e8bdb05dadeaa66c1de61f03168afb
matrix:
include:
- node_js: '19'
cache:
directories: [node_modules]
install:
npm install
after_success: npm run coverage
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
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESUL