aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Harley2018-02-13 10:30:53 +0000
committerTom Harley2018-02-13 10:30:53 +0000
commitdc3ec54f877c8929b77bb4acfa0fa64b46fa7e02 (patch)
tree1645b2a343a33fc0d1e95e7a238291785252a189
parentedited source to comply with linter (diff)
downloadmedicine-dc3ec54f877c8929b77bb4acfa0fa64b46fa7e02.tar.gz
medicine-dc3ec54f877c8929b77bb4acfa0fa64b46fa7e02.zip

added gitlab-ci job for linter

-rw-r--r--.gitlab-ci.yml5
-rw-r--r--package.json3
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",