Skip to content

Commit

Permalink
ci: update matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Jun 20, 2020
1 parent e44d529 commit 5c300fd
Showing 1 changed file with 31 additions and 22 deletions.
53 changes: 31 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
language: node_js
node_js:
- "stable"
- "12"
- "10"
- "8"

script:
- npm run test:ci
after_script:
- 'if [[ x$TRAVIS_NODE_VERSION == xstable ]]; then npm i -g coveralls; ./node_modules/.bin/nyc report --reporter=text-lcov | coveralls; fi'

before_deploy:
- cd example && npm install && cd ..
- mkdir _deploy
- cp example/bundle.js example/index.html _deploy
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: _deploy
on:
branch: default
node: stable
jobs:
include:
- node_js: stable
name: Check linting
script: npm run test:lint
- node_js: stable
name: Check types
script: npm run test:types
- node_js: stable
name: Test on stable Node.js
script: npm run test:ci
after_script: |
npm i -g coveralls
npx nyc report --reporter=text-lcov | coveralls
before_deploy:
- cd example && npm install && cd ..
- mkdir _deploy
- cp example/bundle.js example/index.html _deploy
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: _deploy
on:
branch: default
- node_js: 12
name: Test on Node.js 12
script: npm run test:ci
- node_js: 10
name: Test on Node.js 10
script: npm run test:ci

0 comments on commit 5c300fd

Please sign in to comment.