From bacb62bd474a6a12e3b8e8daaa897589e7b33d2f Mon Sep 17 00:00:00 2001
From: Felix Goding <felgo673@student.liu.se>
Date: Tue, 3 Mar 2020 11:06:53 +0100
Subject: [PATCH] Update .gitlab-ci.yml to use pytest

---
 .gitlab-ci.yml | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 78499e52..a10b243e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,18 @@
+image: python:3.6
+
 stages:
-  - build
+ - test
+
+before_script:
+  - pip3 install .
+  - pip3 show myapp
 
-PythonBuild:
-  stage: build
-  artifacts:
-    untracked: true
+run tests:
+  stage: test
+  only:
+    - develop
+  tags:
+    - python3
+    - test
   script:
-    - apt-get update && apt-get install python3 -y
\ No newline at end of file
+    - pytest test
\ No newline at end of file
-- 
GitLab