Skip to content

Commit a1bb450

Browse files
committed
ci: refind config
1 parent cc5aaa1 commit a1bb450

File tree

2 files changed

+16
-33
lines changed

2 files changed

+16
-33
lines changed

.travis.yml

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,21 @@
11
language: node_js
2-
dist: trusty
2+
3+
node_js:
4+
- "lts/carbon"
5+
- "lts/dubnium"
6+
- "11"
7+
8+
dist: xenial
39
cache: yarn
4-
env:
5-
global:
6-
- CXX=g++-4.8
7-
- YARN_VERSION=1.3.2
10+
11+
script: yarn test:ci
812

913
jobs:
1014
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
2918
script:
3019
- cp README.md README.md.orig
3120
- npm run doctoc
3221
- 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

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
"jsonlint": "find . -type f -not -ipath \"./node_modules/*\" \\( -name \"*.json\" -o -name \"*.json.*\" \\) | xargs -n 1 -I{} -- bash -c 'echo {}; jq . {} > /dev/null;'",
2323
"start": "sequelize db:migrate && node app.js",
2424
"mocha": "mocha --require intelli-espower-loader --exit ./test --recursive",
25+
"mocha:ci": "mocha --no-color -R dot --require intelli-espower-loader --exit ./test --recursive",
2526
"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"
2730
},
2831
"dependencies": {
2932
"@hackmd/codemirror": "~5.41.2",

0 commit comments

Comments
 (0)