language: node_js
cache:
  yarn: true
  directories:
    - node_modules
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
node_js:
  - "8"
script:
  - yarn test
  - yarn deploy && rm -rf ./node_modules/.cache
  - ls -l build/* build.zip
  - sha256sum build/* build.zip | tee SHA256SUMS.txt
  - cat build/* | sha256sum | tee -a SHA256SUMS.txt
after_script:
  - yarn codecov
  - yarn coveralls
  - ./cc-test-reporter after-build --coverage-input-type lcov
deploy:
  provider: releases
  api_key: $GITHUB_OAUTH_TOKEN
  file:
    - build.zip
    - SHA256SUMS.txt
  skip_cleanup: true
  on:
    tags: true

language: node_js
cache:
  yarn: true
  directories:
    - node_modules
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
node_js:
  - "10"
script:
  - yarn test
  - yarn deploy && rm -rf ./node_modules/.cache
  - ls -l build/* build.zip
  - sha256sum build/* build.zip | tee SHA256SUMS.txt
  - cat build/* | sha256sum | tee -a SHA256SUMS.txt
after_script:
  - yarn codecov
  - yarn coveralls
  - ./cc-test-reporter after-build --coverage-input-type lcov
deploy:
  provider: releases
  api_key: $GITHUB_OAUTH_TOKEN
  file:
    - build.zip
    - SHA256SUMS.txt
  skip_cleanup: true
  on:
    tags: true

Use node 10 on TravisCI
Use node 10 on TravisCI
