language: node_js node_js: lts/* stages: - Lint & Tests - Build & Publish jobs: include: - stage: Lint & Tests name: Lint commit messages script: commitlint-travis - script: yarn lint name: Lint JavaScript - script: yarn test:coverage name: Tests # NOTICE: Handles code coverage reporting to Code Climate before_install: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter after_script: - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT - stage: Build & Publish if: branch = master AND type != pull_request script: skip deploy: provider: script on: branch: master script: yarn && npx semantic-release