2017-02-15 18:14:58 +08:00
|
|
|
language: node_js
|
2019-05-27 16:57:43 +08:00
|
|
|
|
|
|
|
node_js:
|
|
|
|
- "lts/carbon"
|
|
|
|
- "lts/dubnium"
|
|
|
|
- "11"
|
2019-05-27 18:29:30 +08:00
|
|
|
- "12"
|
2019-05-27 16:57:43 +08:00
|
|
|
|
|
|
|
dist: xenial
|
2020-02-17 11:05:30 +08:00
|
|
|
cache: npm
|
2019-05-27 16:57:43 +08:00
|
|
|
|
2019-05-27 18:29:30 +08:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
include:
|
|
|
|
- node_js: lts/carbon
|
|
|
|
- node_js: lts/dubnium
|
|
|
|
allow_failures:
|
|
|
|
- node_js: "11"
|
|
|
|
- node_js: "12"
|
2017-09-27 22:26:03 +08:00
|
|
|
|
2019-05-27 18:35:35 +08:00
|
|
|
script:
|
2020-02-17 11:05:30 +08:00
|
|
|
- npm run test:ci
|
|
|
|
- npm run build
|
2019-05-27 18:35:35 +08:00
|
|
|
|
2017-10-28 03:01:36 +08:00
|
|
|
jobs:
|
|
|
|
include:
|
2019-05-27 16:57:43 +08:00
|
|
|
- stage: doctoc-check
|
|
|
|
install: npm install -g doctoc
|
|
|
|
if: type = pull_request OR branch = master
|
2017-10-28 03:01:49 +08:00
|
|
|
script:
|
|
|
|
- cp README.md README.md.orig
|
|
|
|
- npm run doctoc
|
|
|
|
- diff -q README.md README.md.orig
|
2019-05-27 18:29:30 +08:00
|
|
|
node_js: lts/carbon
|