.travis.yml
env:
global:
- CC_TEST_REPORTER_ID=$CODE_CLIMATE_KEY
sudo: false
language: node_js
node_js:
- stable
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
- npm run test:coverage
- npm run build
- npm run codecov
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
deploy:
provider: npm
api_key: "$NPM_KEY"
email: "christian.oezelt@gmail.com"
skip_cleanup: true