From f5e1df0ee411681561fa21ada3fae0b0ec17583e Mon Sep 17 00:00:00 2001
From: Andreas Valder <andreasv@fsmpi.rwth-aachen.de>
Date: Thu, 7 Dec 2017 07:39:53 +0100
Subject: [PATCH] Update .gitlab-ci.yml

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2faa187..dbf9c0a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,11 +1,14 @@
+before_script:
+    - apt update
+    - apt install -y python3
+    - python3 -V
+    - uname -a
+
 unittest:
     image: debian:stretch
     stage: test
     script:
-    - apt update
-    - apt install -y sqlite3 python3 locales-all  python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage git
-    - python3 -V
-    - uname -a
+    - apt install -y sqlite3 locales-all git python3-flask python3-ldap3 python3-requests python3-lxml python3-icalendar python3-mysql.connector python3-requests python3-coverage
     - python3 -m coverage run tests.py
     - python3 -m coverage report --include "./*"
     - python3 -m coverage report -m  --include "./*" > report.txt
@@ -20,8 +23,5 @@ livetest:
     image: debian:stretch
     stage: test
     script:
-    - apt update
-    - apt install -y python3 python3-requests
-    - python3 -V
-    - uname -a
+    - apt install -y python3-requests
     - ./tests/urlcheck_sinf.py
\ No newline at end of file
-- 
GitLab