.travis.yml
git:
depth: false
language: node_js
node_js:
- "node"
cache:
directories:
- "node_modules"
before_script:
- '[ -e "./cc-test-reporter" ] || 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'
- npm install --save-dev codacy-coverage codecov
after_script:
- nyc report --reporter=lcov
- codecov
- cat ./coverage/lcov.info | codacy-coverage -f lcov -t $CODACY_PROJECT_TOKEN
- ./cc-test-reporter after-build -t lcov --exit-code $TRAVIS_TEST_RESULT --debug || echo 'Skipping cc-test-reporter after-build...'