stefan-prokop-cz/firebless

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: node_js
node_js:
- '12'
- '14'
- '16'

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:
- npm run lint
- npm run build
- npm run test:coverage
- npm run docs

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

deploy:
  - provider: pages
    skip-cleanup: true
    github-token: $PAGES_TOKEN
    keep-history: true
    local-dir: ./docs
    verbose: true
    on:
      branch: master
  - provider: npm
    email: sprokop1010@seznam.cz
    skip_cleanup: true
    api_key: $NPM_TOKEN
    on:
      tags: true
      repo: stefan-prokop-cz/firebless