alsatian-test/alsatian

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js
node_js:
  - "12"
  - "10"
  - "8"
os:
  - linux
  - osx
  - windows
before_script:
  - if [ ${TRAVIS_OS_NAME} == "linux" ]; then
        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;
    fi
  - npm run bootstrap
  - npm run build
script:
  - if [ ${TRAVIS_EVENT_TYPE} == "cron" ]; then
        npm run publish-nightly;
    else
        npm test;
    fi
after_script:
  - if [ ${TRAVIS_OS_NAME} == "linux" ]; then
        chmod +x .codeclimate-report-coverage.sh;
        ./.codeclimate-report-coverage.sh;
    fi