tom-weatherhead/thaw-image-processing.ts

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js
os:
  - linux
  - osx
  - windows
dist: focal
osx_image: xcode12.2
node_js:
  - 14
  - 12
  - 10
branches:
  only:
    - master
cache:
  directories:
    - node_modules
install:
  - npm set progress=false
  - npm install
before_script:
  - if [ "$TRAVIS_OS_NAME" = "linux" -a "$TRAVIS_NODE_VERSION" = "14" ]; 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
script:
  # Why does prettier-check fail on Windows?
  - if [ "$TRAVIS_OS_NAME" != "windows" ]; then npm run prettier-check ; fi
  - npm run lint
  - npm run build
  - npm run build-cli
  - npm test
after_script:
  - if [ "$TRAVIS_OS_NAME" = "linux" -a "$TRAVIS_NODE_VERSION" = "14" ]; then ./cc-test-reporter after-build -t lcov --debug --exit-code $TRAVIS_TEST_RESULT ; fi