elgervb/mock-data

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js

env:
  global:
    - CC_TEST_REPORTER_ID=$CODE_CLIMATE_SECRET

node_js:
  - "12"
  - "13"

os: linux
dist: trusty

addons:
  apt:
    packages:
      - xvfb

install:
  - export DISPLAY=':99.0'
  - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
  - yarn install

before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build

script:
  - yarn lint
  - yarn test --coverage
  - yarn build

after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT