# Travis CI config
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/migrating-from-legacy/

filter_secrets: false
language: node_js

node_js:
  - 10
  - 8
  - 6

os:
  - linux
  - osx
  - windows

before_script:
  - npm run lint

script:
  - npm run test:typescript
  - npm run coverage

after_success:
  # send code-coverage data to Coveralls
  - cat ./coverage/lcov.info | coveralls

jobs:
  include:
    - stage: Deploy
      name: Publish to npm
      script: true
      after_success: true
      deploy:
        provider: npm
        email: $NPM_EMAIL
        api_key: $NPM_API_KEY
        skip_cleanup: true
        on:
          tags: true
          branch: master

# Travis CI config
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/migrating-from-legacy/

filter_secrets: false
language: node_js

node_js:
  - 8
  - 10
  - 12

os:
  - linux
  - osx
  - windows

before_script:
  - npm run lint

script:
  - npm run test:typescript
  - npm run coverage

after_success:
  # send code-coverage data to Coveralls
  - cat ./coverage/lcov.info | coveralls

jobs:
  include:
    - stage: Deploy
      name: Publish to npm
      script: true
      after_success: true
      deploy:
        provider: npm
        email: $NPM_EMAIL
        api_key: $NPM_API_KEY
        skip_cleanup: true
        on:
          tags: true
          branch: master

Add node 12, drop node 6
Add node 12, drop node 6
