.travis.yml
language: node_js
branches:
only:
- master
- staging
- /^greenkeeper/.*$/
node_js:
- "10"
- "9"
- "8"
os:
- linux
- osx
matrix:
include:
- node_js: "lts/*"
os: linux
env: CC_SAMPLE=true
- node_js: "lts/*"
os: osx
cache:
yarn: true
directories:
- node_modules
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
if [ "$CC_SAMPLE" = "true" ]; then ./cc-test-reporter before-build; fi
script:
- npm run test:prod && npm run build
after_script:
- |
if [ "$CC_SAMPLE" = "true" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi