aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorTom Harley2018-03-28 19:35:41 +0100
committerTom Harley2018-03-28 19:35:41 +0100
commit4e90981c207fecc7e5c6bb86aa9848a8b7f58ace (patch)
tree900b0f305642a44e93934391849baf7f86d9b5d1 /.gitlab-ci.yml
parentRemove PostgreSQL from CI file (diff)
downloadmedicine-4e90981c207fecc7e5c6bb86aa9848a8b7f58ace.tar.gz
medicine-4e90981c207fecc7e5c6bb86aa9848a8b7f58ace.zip

Edit CI to lint all files and run all tests

Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml14
1 files changed, 10 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1041ea8..5d53e9a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,6 +6,7 @@ cache:
stages:
- build
- test
+ - lint
install:
stage: build
@@ -13,12 +14,17 @@ install:
- npm install --global yarn
- yarn
-mocha:
+unit-test:
stage: test
script:
- - yarn test:routes:index
+ - yarn test:unit
-lint:
+route-test:
stage: test
script:
- - yarn run _gl-lint
+ - yarn test:routes
+
+lint:
+ stage: lint
+ script:
+ - yarn _lint