From 9028a8bd21da9f15ccbf4ffc5919adb84e6a2d98 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org>
Date: Thu, 1 Oct 2020 17:03:50 +0200
Subject: [PATCH] MAINT: clean up

---
 .gitlab-ci.yml | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f498a22..862d1b8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -118,19 +118,19 @@ test:
 test_debian:
   tags: [docker]
   stage: test
-  image: $CI_REGISTRY_INDISCALE/caosdb/src/caosdb-deploy/caosdb-run-base:latest
+  image: debian:buster
   script:
+    - if [[ "$DEBIAN_PACKAGE_JOB" == "0" ]]; then
+        exit 0;
+      fi
+    - apt-get update
+    - apt-get install -y unzip curl
     # get debian image
-    - 'curl --location --output debian_artifacts.zip --header "JOB-TOKEN: $CI_DEBIAN_JOB_TOKEN" "https://gitlab.indiscale.com/api/v4/projects/14/jobs/$DEBIAN_JOB_ID/artifacts"'
+    - 'curl --location --output debian_artifacts.zip "https://gitlab.indiscale.com/api/v4/projects/14/jobs/$DEBIAN_PACKAGE_JOB/artifacts"'
     - unzip debian_artifacts.zip
-
-    - dpkg -i /path/to/file
+    - dpkg -i debian/linkahead/linkahead_*.deb  
     - apt-get install -f
-    - cd .docker
-      # the pyinttest docker writes the return value of the tests into the
-      # file result
-    - /bin/sh ./run.sh
-      - cd ..
+    - python3 -m pytest
   dependencies: [cert]
   artifacts:
     paths:
-- 
GitLab