mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 18:26:32 -05:00
Merge pull request #481 from codimd/nestjs-ci
This commit is contained in:
commit
1ea589196d
2 changed files with 16 additions and 23 deletions
36
.travis.yml
36
.travis.yml
|
@ -2,34 +2,26 @@ language: node_js
|
||||||
dist: xenial
|
dist: xenial
|
||||||
cache: yarn
|
cache: yarn
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- Static Tests
|
||||||
|
- test
|
||||||
|
|
||||||
|
node_js:
|
||||||
|
- 10
|
||||||
|
- 12
|
||||||
|
- 14
|
||||||
|
env:
|
||||||
|
- TEST_SUITE=test
|
||||||
|
- TEST_SUITE=test:e2e
|
||||||
|
script: "yarn run $TEST_SUITE"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: Static Tests
|
- stage: Static Tests
|
||||||
name: eslint
|
name: eslint
|
||||||
node_js:
|
|
||||||
- 10
|
|
||||||
script:
|
script:
|
||||||
- yarn run eslint
|
- yarn run lint
|
||||||
- name: ShellCheck
|
- name: ShellCheck
|
||||||
script:
|
script:
|
||||||
- shellcheck bin/heroku bin/setup
|
- shellcheck bin/heroku bin/setup
|
||||||
language: generic
|
language: generic
|
||||||
- name: json-lint
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- jq
|
|
||||||
script:
|
|
||||||
- yarn run jsonlint
|
|
||||||
language: generic
|
|
||||||
- stage: Dynamic Tests
|
|
||||||
name: Node.js 10
|
|
||||||
node_js:
|
|
||||||
- 10
|
|
||||||
script:
|
|
||||||
- yarn run mocha-suite
|
|
||||||
- name: Node.js 12
|
|
||||||
node_js:
|
|
||||||
- 12
|
|
||||||
script:
|
|
||||||
- yarn run mocha-suite
|
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
"start:dev": "nest start --watch",
|
"start:dev": "nest start --watch",
|
||||||
"start:debug": "nest start --debug --watch",
|
"start:debug": "nest start --debug --watch",
|
||||||
"start:prod": "node dist/main",
|
"start:prod": "node dist/main",
|
||||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
|
||||||
|
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:watch": "jest --watch",
|
"test:watch": "jest --watch",
|
||||||
"test:cov": "jest --coverage",
|
"test:cov": "jest --coverage",
|
||||||
|
|
Loading…
Reference in a new issue