diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 424da6b440e8bdcfc301e99cfcc3b4772369a70d..55f604455b46b6d7d24a37978a0593079c9f574d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,8 +20,9 @@
 #
 # ** end header
 #
+
 variables:
-    CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb-server-testenv:latest
+   CI_REGISTRY_IMAGE: $CI_REGISTRY/caosdb-server-testenv:latest
    # When using dind service we need to instruct docker, to talk with the
    # daemon started inside of the service. The daemon is available with
    # a network connection instead of the default /var/run/docker.sock socket.
@@ -46,66 +47,16 @@ services:
 image: $CI_REGISTRY_IMAGE
 stages:
     - setup
-    - code-generation
-    - build
     - test
-    - clean
     - deploy
 
-##########
-# SETUP
-##########
-
-# delete local maven repo to be sure all packages are still maintained by the maven repos
-setup:mvn:
-    tags: [ java10 ]
-    stage: setup
+test:
+    stage: test
     script:
         - make easy-units
         - mvn dependency:purge-local-repository
-
-
-##################
-# Code-generation
-##################
-
-# generate parsing classes with antlr
-code-generation:antlr:
-    tags: [ java10 ]
-    stage: code-generation
-    artifacts:
-        paths:
-            - target/generated-sources/antlr4/
-    script:
         - mvn antlr4:antlr4
-
-#########
-# Build
-#########
-
-# compile the server
-build:server:
-    tags: [ java10 ]
-    stage: build
-    dependencies:
-        - code-generation:antlr
-    artifacts:
-        paths:
-            - target/classes/
-    script:
         - mvn compile
-
-########
-# Test
-########
-
-# junit tests for the server
-test:server:
-    tags: [ java10 ]
-    stage: test
-    dependencies:
-        - build:server
-    script:
         - echo "defaultRealm = CaosDB" > conf/ext/usersources.ini
         - mvn test
 
@@ -128,6 +79,7 @@ build-testenv:
           # use here general latest or specific branch latest...
         - docker pull $CI_REGISTRY_IMAGE || true
         - docker build 
+          --pull
           --cache-from $CI_REGISTRY_IMAGE 
           -t $CI_REGISTRY_IMAGE .
         - docker push $CI_REGISTRY_IMAGE
diff --git a/src/test/docker/Dockerfile b/src/test/docker/Dockerfile
index 8be92ff96cbbcb1836c6191a18241581a0b81817..9e7bd9a73a3a52e052f4b5953adf1178254f6f03 100644
--- a/src/test/docker/Dockerfile
+++ b/src/test/docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM debian:latest
+FROM debian:stretch
 RUN apt-get update && \
 	apt-get install git make mariadb-server maven openjdk-8-jdk-headless \
-      python3-pip screen libpam0g-dev unzip -y
+      python3-pip screen libpam0g-dev unzip curl -y