language: node_js node_js: - lts/* branches: only: - master cache: yarn: true directories: - node_modules jobs: include: - stage: release 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 - yarn test:ci - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT - rm -f cc-test-reporter env: CC_TEST_REPORTER_ID=$CODECLIMATE_REPO_TOKEN deploy: provider: script skip_cleanup: true script: npm run semantic-release