mirror of https://github.com/status-im/codimd.git
ci: refind config
This commit is contained in:
parent
cc5aaa1228
commit
a1bb450f47
44
.travis.yml
44
.travis.yml
|
@ -1,41 +1,21 @@
|
||||||
language: node_js
|
language: node_js
|
||||||
dist: trusty
|
|
||||||
|
node_js:
|
||||||
|
- "lts/carbon"
|
||||||
|
- "lts/dubnium"
|
||||||
|
- "11"
|
||||||
|
|
||||||
|
dist: xenial
|
||||||
cache: yarn
|
cache: yarn
|
||||||
env:
|
|
||||||
global:
|
script: yarn test:ci
|
||||||
- CXX=g++-4.8
|
|
||||||
- YARN_VERSION=1.3.2
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- env: task=npm-test
|
- stage: doctoc-check
|
||||||
node_js:
|
install: npm install -g doctoc
|
||||||
- 8
|
if: type = pull_request OR branch = master
|
||||||
before_install:
|
|
||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "$YARN_VERSION"
|
|
||||||
- export PATH="$HOME/.yarn/bin:$PATH"
|
|
||||||
- env: task=npm-test
|
|
||||||
node_js:
|
|
||||||
- 10
|
|
||||||
before_install:
|
|
||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "$YARN_VERSION"
|
|
||||||
- export PATH="$HOME/.yarn/bin:$PATH"
|
|
||||||
- env: task=ShellCheck
|
|
||||||
script:
|
|
||||||
- shellcheck bin/heroku bin/setup
|
|
||||||
language: generic
|
|
||||||
- env: task=doctoc
|
|
||||||
install: npm install doctoc
|
|
||||||
script:
|
script:
|
||||||
- cp README.md README.md.orig
|
- cp README.md README.md.orig
|
||||||
- npm run doctoc
|
- npm run doctoc
|
||||||
- diff -q README.md README.md.orig
|
- diff -q README.md README.md.orig
|
||||||
language: generic
|
|
||||||
- env: task=json-lint
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- jq
|
|
||||||
script:
|
|
||||||
- npm run jsonlint
|
|
||||||
language: generic
|
|
||||||
|
|
|
@ -22,8 +22,11 @@
|
||||||
"jsonlint": "find . -type f -not -ipath \"./node_modules/*\" \\( -name \"*.json\" -o -name \"*.json.*\" \\) | xargs -n 1 -I{} -- bash -c 'echo {}; jq . {} > /dev/null;'",
|
"jsonlint": "find . -type f -not -ipath \"./node_modules/*\" \\( -name \"*.json\" -o -name \"*.json.*\" \\) | xargs -n 1 -I{} -- bash -c 'echo {}; jq . {} > /dev/null;'",
|
||||||
"start": "sequelize db:migrate && node app.js",
|
"start": "sequelize db:migrate && node app.js",
|
||||||
"mocha": "mocha --require intelli-espower-loader --exit ./test --recursive",
|
"mocha": "mocha --require intelli-espower-loader --exit ./test --recursive",
|
||||||
|
"mocha:ci": "mocha --no-color -R dot --require intelli-espower-loader --exit ./test --recursive",
|
||||||
"coverage": "nyc mocha --require intelli-espower-loader --exit --recursive ./test",
|
"coverage": "nyc mocha --require intelli-espower-loader --exit --recursive ./test",
|
||||||
"test": "npm run-script lint && npm run-script jsonlint && npm run-script coverage"
|
"coverage:ci": "nyc mocha --no-color -R dot --require intelli-espower-loader --exit --recursive ./test",
|
||||||
|
"test": "npm run-script lint && npm run-script jsonlint && npm run-script coverage",
|
||||||
|
"test:ci": "npm run-script lint && npm run-script jsonlint && npm run-script coverage:ci"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hackmd/codemirror": "~5.41.2",
|
"@hackmd/codemirror": "~5.41.2",
|
||||||
|
|
Loading…
Reference in New Issue