OwenKelvin/Angular-School-Management-System

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
dist: trusty
sudo: false

env:
  global:
    - CC_TEST_REPORTER_ID=5998bb996330c1b30adbbc5e49526094fe3775d7abd484c5aa7eb3b74bebd486

language: node_js
node_js:
  - '12.6.0'

addons:
  apt:
    sources:
      - google-chrome
    packages:
      - google-chrome-stable

cache:
  directories:
    - ./node_modules

install:
  - npm install
  - npm i coveralls
  
before_install:
  - 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:
  - npm run test -- --watch=false --no-progress --browsers=ChromeHeadlessNoSandbox --code-coverage
  # - copy ./coverage/FsmsApp ./coverage
  # - npm run test -- --watch=false --no-progress --browsers=ChromeHeadlessNoSandbox --code-coverage
  
# after_script:

after_success:
  - cat ./coverage/**/lcov.info | coveralls
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT