2020-08-18 11:35:54 +03:00
|
|
|
os: linux
|
2019-02-06 14:54:15 +03:00
|
|
|
language: node_js
|
2019-03-06 14:03:41 +03:00
|
|
|
|
2020-08-18 11:35:54 +03:00
|
|
|
if: tag IS blank
|
2019-03-06 14:03:41 +03:00
|
|
|
|
2020-08-18 11:35:54 +03:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- gh pages
|
|
|
|
- npm deploy
|
2019-03-06 14:03:41 +03:00
|
|
|
|
2020-08-18 11:35:54 +03:00
|
|
|
script: npm run test
|
2019-03-06 14:03:41 +03:00
|
|
|
|
2020-08-18 11:35:54 +03:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- node_js: 8
|
|
|
|
- node_js: 10
|
|
|
|
- node_js: 12
|
|
|
|
- node_js: 13
|
2020-08-18 12:13:45 +03:00
|
|
|
after_success:
|
|
|
|
- npm install -g codecov
|
|
|
|
- npm run report-coverage
|
2020-08-18 11:35:54 +03:00
|
|
|
- stage: gh pages
|
2020-08-18 13:38:22 +03:00
|
|
|
node_js: 13
|
2020-08-18 11:35:54 +03:00
|
|
|
script: skip
|
|
|
|
before_deploy: npm run doc
|
|
|
|
deploy:
|
|
|
|
provider: pages
|
|
|
|
skip-cleanup: true
|
|
|
|
github-token: $GITHUB_TOKEN
|
|
|
|
keep-history: true
|
|
|
|
local-dir: out
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
if: branch = master AND type = push AND fork = false
|
|
|
|
- stage: npm deploy
|
2020-08-18 12:13:45 +03:00
|
|
|
script: skip
|
2020-08-18 14:53:29 +03:00
|
|
|
before_deploy: npm run build
|
2020-08-18 11:35:54 +03:00
|
|
|
deploy:
|
|
|
|
provider: npm
|
|
|
|
email: $NPM_EMAIL
|
|
|
|
api_key: $NPM_API_KEY
|
|
|
|
skip-cleanup: true
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
if: branch = master AND type = push AND fork = false
|