-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e44d529
commit 5c300fd
Showing
1 changed file
with
31 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |