From dc3ec54f877c8929b77bb4acfa0fa64b46fa7e02 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 13 Feb 2018 10:30:53 +0000 Subject: added gitlab-ci job for linter --- .gitlab-ci.yml | 5 +++++ package.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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", -- cgit v1.2.1