GerkinDev/sequential-event

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js
branches:
  only:
    - master
    - staging
    - /^greenkeeper/.*$/
notifications:
  email: false
node_js:
  - "10"
  - "9"
  - "8"
os:
  - linux
  - osx
matrix:
  include:
  - node_js: "lts/*"
    os: linux
    env: CC_SAMPLE=true
  - node_js: "lts/*"
    os: osx
before_install:
  - rm -f npm-shrinkwrap.json
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 echo "This run will be used for codeclimate";./cc-test-reporter before-build; fi
script:
  - npm run test:prod
after_script:
  - |
    if [ "$CC_SAMPLE" = "true" ]; then echo "This run is used for codeclimate"; ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
cache:
  directories:
    - "node_modules"