diff options
| author | Tom Harley | 2018-02-13 10:30:53 +0000 |
|---|---|---|
| committer | Tom Harley | 2018-02-13 10:30:53 +0000 |
| commit | dc3ec54f877c8929b77bb4acfa0fa64b46fa7e02 (patch) | |
| tree | 1645b2a343a33fc0d1e95e7a238291785252a189 | |
| parent | edited source to comply with linter (diff) | |
| download | medicine-dc3ec54f877c8929b77bb4acfa0fa64b46fa7e02.tar.gz medicine-dc3ec54f877c8929b77bb4acfa0fa64b46fa7e02.zip | |
added gitlab-ci job for linter
| -rw-r--r-- | .gitlab-ci.yml | 5 | ||||
| -rw-r--r-- | package.json | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a223246..58a14ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,3 +17,8 @@ mocha: stage: test script: - npm test + +lint: + stage: test + script: + - npm run _gl-lint diff --git a/package.json b/package.json index 28fbd3d..0f7e831 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "test": "mocha --reporter spec -r ts-node/register 'test/**/*.test.ts'", "start": "ts-node src/index.ts", - "lint": "tslint --fix -p './tsconfig.json'" + "lint": "tslint --fix --force -p './tsconfig.json'", + "_gl-lint": "tslint -p './tsconfig.json'" }, "repository": { "type": "git", |
