File tree Expand file tree Collapse file tree 2 files changed +16
-33
lines changed Expand file tree Collapse file tree 2 files changed +16
-33
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
- dist : trusty
2
+
3
+ node_js :
4
+ - " lts/carbon"
5
+ - " lts/dubnium"
6
+ - " 11"
7
+
8
+ dist : xenial
3
9
cache : yarn
4
- env :
5
- global :
6
- - CXX=g++-4.8
7
- - YARN_VERSION=1.3.2
10
+
11
+ script : yarn test:ci
8
12
9
13
jobs :
10
14
include :
11
- - env : task=npm-test
12
- node_js :
13
- - 8
14
- before_install :
15
- - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "$YARN_VERSION"
16
- - export PATH="$HOME/.yarn/bin:$PATH"
17
- - env : task=npm-test
18
- node_js :
19
- - 10
20
- before_install :
21
- - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "$YARN_VERSION"
22
- - export PATH="$HOME/.yarn/bin:$PATH"
23
- - env : task=ShellCheck
24
- script :
25
- - shellcheck bin/heroku bin/setup
26
- language : generic
27
- - env : task=doctoc
28
- install : npm install doctoc
15
+ - stage : doctoc-check
16
+ install : npm install -g doctoc
17
+ if : type = pull_request OR branch = master
29
18
script :
30
19
- cp README.md README.md.orig
31
20
- npm run doctoc
32
21
- diff -q README.md README.md.orig
33
- language : generic
34
- - env : task=json-lint
35
- addons :
36
- apt :
37
- packages :
38
- - jq
39
- script :
40
- - npm run jsonlint
41
- language : generic
Original file line number Diff line number Diff line change 22
22
"jsonlint" : " find . -type f -not -ipath \" ./node_modules/*\" \\ ( -name \" *.json\" -o -name \" *.json.*\" \\ ) | xargs -n 1 -I{} -- bash -c 'echo {}; jq . {} > /dev/null;'" ,
23
23
"start" : " sequelize db:migrate && node app.js" ,
24
24
"mocha" : " mocha --require intelli-espower-loader --exit ./test --recursive" ,
25
+ "mocha:ci" : " mocha --no-color -R dot --require intelli-espower-loader --exit ./test --recursive" ,
25
26
"coverage" : " nyc mocha --require intelli-espower-loader --exit --recursive ./test" ,
26
- "test" : " npm run-script lint && npm run-script jsonlint && npm run-script coverage"
27
+ "coverage:ci" : " nyc mocha --no-color -R dot --require intelli-espower-loader --exit --recursive ./test" ,
28
+ "test" : " npm run-script lint && npm run-script jsonlint && npm run-script coverage" ,
29
+ "test:ci" : " npm run-script lint && npm run-script jsonlint && npm run-script coverage:ci"
27
30
},
28
31
"dependencies" : {
29
32
"@hackmd/codemirror" : " ~5.41.2" ,
You can’t perform that action at this time.
0 commit comments