From e0023833908f9cb6136dc3caad3c65f147db0661 Mon Sep 17 00:00:00 2001
From: Lesterpig <git@lesterpig.com>
Date: Tue, 1 Dec 2015 20:45:55 +0100
Subject: [PATCH] [CI] Prepare commit artefacts

---
 .gitlab-ci.yml | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1c06361..2e4f432 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,7 @@
 stages:
   - test
 
-job_tests:
+Unit tests:
   stage: test
   tags:
     - golang
@@ -9,9 +9,14 @@ job_tests:
     - strong # Disable this build on small runners
   services:
     - "lesterpig/mongo:latest" # Use this light version of mongo
-  script: "go test -cover -v ./..."
+  #artifacts: # Waiting GitLab 8.2.1...
+  #  paths:
+  #    - "coverage.html"
+  script:
+    - "go test -coverprofile c.out -v ./..."
+    - "go tool cover -html=c.out -o coverage.html"
 
-job_lint:
+Code lint:
   stage: test
   allow_failure: True
   tags:
-- 
GitLab