aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorTom Harley2018-03-28 19:37:34 +0100
committerTom Harley2018-03-28 19:37:34 +0100
commitfd44d41a9b1a792acddf2f73a6ffcc8bab355697 (patch)
treeaffc8f2a3db8921de2cd63eaa06fd525289d98ac /.gitlab-ci.yml
parentFix some minor linting errors (diff)
parentEdit CI to lint all files and run all tests (diff)
downloadmedicine-fd44d41a9b1a792acddf2f73a6ffcc8bab355697.tar.gz
medicine-fd44d41a9b1a792acddf2f73a6ffcc8bab355697.zip

Merge branch ‘testing-middleware’ into development

Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml23
1 files changed, 10 insertions, 13 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cdf3960..5d53e9a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,20 +1,12 @@
image: node:9.1.0
-services:
- - postgres:10.0
cache:
untracked: true
-variables:
- POSTGRES_DB: nice_marmot
- POSTGRES_USER: admin
- POSTGRES_PASSWORD: ""
- POSTGRES_HOST: postgres
-
-
stages:
- build
- test
+ - lint
install:
stage: build
@@ -22,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