language: node_js cache: directories: - node_modules - .tmp notifications: email: false before_install: - git fetch --tags stages: - name: test # require the event type to not be a semantic release tag. if: NOT tag =~ ^v\d+\.\d+\.\d+$ jobs: include: - stage: test node_js: 'lts/boron' # Semantic Release is not used, however it fails the build due to requiring >=8.3. install: yarn --ignore-engines script: - yarn lint - yarn test after_success: # Report coverage to coveralls.io - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js - rm -rf ./coverage - stage: test node_js: 'lts/carbon' script: - yarn lint - yarn test - stage: deploy if: branch = master # Semantic release will fail if it's not using node 8. node_js: 'lts/carbon' script: yarn semantic-release