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
|
||||
dist: trusty
|
||||
|
||||
node_js:
|
||||
- "lts/carbon"
|
||||
- "lts/dubnium"
|
||||
- "11"
|
||||
|
||||
dist: xenial
|
||||
cache: yarn
|
||||
env:
|
||||
global:
|
||||
- CXX=g++-4.8
|
||||
- YARN_VERSION=1.3.2
|
||||
|
||||
script: yarn test:ci
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- env: task=npm-test
|
||||
node_js:
|
||||
- 8
|
||||
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
|
||||
- stage: doctoc-check
|
||||
install: npm install -g doctoc
|
||||
if: type = pull_request OR branch = master
|
||||
script:
|
||||
- cp README.md README.md.orig
|
||||
- npm run doctoc
|
||||
- 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;'",
|
||||
"start": "sequelize db:migrate && node app.js",
|
||||
"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",
|
||||
"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": {
|
||||
"@hackmd/codemirror": "~5.41.2",
|
||||
|
|
Loading…
Reference in New Issue