.travis.yml
language: node_js
cache:
yarn: true
directories:
- node_modules
node_js:
- 8
- 10
notifications:
email: false
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:
- yarn test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_success:
- yarn build
jobs:
include:
- stage: release
node_js: lts/*
deploy:
provider: script
skip_cleanup: true
script:
- npx semantic-release
branches:
only:
- master
- "/^greenkeeper/.*$/"
env:
global:
- CC_TEST_REPORTER_ID=94dc98db9b1d2264af57f5a2891f135593bd89f611050a8c711d8af4f69a2a63