stanchino/react-serverless-auth

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
branches:
  except:
    - /^v[0-9]/
env:
  global:
    - CC_TEST_REPORTER_ID=acdec03fe2f3a1babf23bbeb39e49678c28d9f81ff0928a52f3ec25f2ae0c719
    - COVERALLS_REPO_TOKEN=go8J7jfWhVVLexk3YXXcQZ3vZyjMOJXNU
git:
  submodules: false
language: node_js
node_js:
  - node
  - lts/*
os:
  - osx
  - linux
cache:
  yarn: true
  directories:
    - node_modules
before_script:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter ; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then chmod +x ./cc-test-reporter ; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./cc-test-reporter before-build ; fi
script:
  - yarn eslint
  - yarn test --bail --ci --coverage
after_script:
  - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT ; fi
deploy:
  provider: script
  skip_cleanup: true
  script:
    - npx travis-deploy-once "npx semantic-release"
  on:
    branch: master