oysterprotocol/webinterface

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js
node_js:
  - "9"
sudo: false
env:
  global:
    - CC_TEST_REPORTER_ID=7fa50da3422d271e4c1236b68a974f18dd6ac314b94678f4322cf35ae1ce45f3
branches:
  only:
    - master
cache: npm

before_install:
  - npm i -g npm@6.4.1
before_script:
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3 # give xvfb some time to start
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter # Set up Code Climate
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build
  - npm run test:install
  - npm start -- --silent & # Silent to run E2E tests
script:
  - npm build
  - npm run test:coverage # Unit Tests
  - npm run test:record # E2E Tests
after_script:
  # Publishes Unit test report to Code Climate
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

notifications:
  slack:
    secure: i0w/EwaMOa729ViAoOU2VMo/2hbiGQSaE6T3YBRR2IpRiYPrvHZ3uYmbyvjGK1RXIPVnLP2Y8Ry9C2GEH/Vuww2mRXbi26A8eFMrDPfLEjS0lJGJlR1kN9sXo9iBUBRQUIn7lhNambLGV3Kz4Xo0kfH/YIdhWRJ8KWfMCtd3qG0Q5qtw9sAsfmIB31D17XZHIHHxUPUgpUVPZxb6mJbTx8Mh0alEATNqt42iSiFDxW2vR0+/tB3p2iODaVC6CeSt5TWiPTn8hod6qPISrG0e6mMjynm9I5Yf0aH0N5EW5Zqlm8ammwEDd9juJZJ/wAqR4E9ubDKgRL4FEoLEp8GOTakyfWZOIVNu/DhXl1Is/xXBDOv+fJZgPEbJ9rc5i0yoPV0cqop4M3nMsexRAq0AE6kPa0ZmT9MeqR+J0edugdvMLn7d4LW06xLqYWavF0jpxqlIVCCOEzvqT36uHSrfy9I5RLJh69ivfW/E7aY2ifYz3wEUwqtWD9H8bCOfnhZgxWL4+f30IqZq8OjURC89kBs/jiP6XrSXgIbMDyU53+5DGJHll4VO3UveUaJrpFz9PNneTrn+A1RE/wNZE3qSMX5iIGhDKH5v85Dn36Tpd2LFwVGcYCqmuzU+r2GOkjpqT0wuUdCl1HV3kx2HJOzRTWj+2h49WRC8DSuk/0F/+vk=