From f5c91c4187f8c5ebe832625ef40d9587ab5e0de8 Mon Sep 17 00:00:00 2001
From: Lukas Braun <koomi@moshbit.net>
Date: Sat, 7 Oct 2017 22:54:27 +0200
Subject: [PATCH] gitlab-ci: Run all the tests

Use -stretch images because libpam-wrapper is not in jessie.
Drop go1.7 because there is no go1.7-stretch image.
---
 .gitlab-ci.yml | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e0cb947..deb008c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,28 +11,21 @@ before_script:
     - ln -s /builds /go/src/gitlab.cs.fau.de
     - cd /go/src/gitlab.cs.fau.de/koomi/goatherd
     - go get -d
+    - export PGHOST=postgres PGUSER=$POSTGRES_USER PGPASSWORD=$POSTGRES_PASSWORD PGSSLMODE=disable
     - export DB_URL="host=postgres user=$POSTGRES_USER password=$POSTGRES_PASSWORD sslmode=disable"
-
-go1.7:
-    image: golang:1.7
-    script:
-        - go build goatherd.go
-        - sh test_pg.sh
-    tags:
-        - shared runner
+    - apt update
+    - apt install --yes libpam0g-dev libgnutls28-dev libpam-wrapper pamtester oathtool postgresql xxd
 
 go1.8:
-    image: golang:1.8
+    image: golang:1.8-stretch
     script:
-        - go build goatherd.go
-        - sh test_pg.sh
+        - make test
     tags:
         - shared runner
 
 go1.9:
-    image: golang:1.9
+    image: golang:1.9-stretch
     script:
-        - go build goatherd.go
-        - sh test_pg.sh
+        - make test
     tags:
         - shared runner
-- 
GitLab