From 9fbc89a995dd772952bb1ff011d94f90d4975401 Mon Sep 17 00:00:00 2001
From: rschoene <rene.schoene@tu-dresden.de>
Date: Mon, 19 Apr 2021 16:11:28 +0200
Subject: [PATCH] re-enable test, add models-stage to clone ttc repo

---
 .gitlab-ci.yml | 39 ++++++++++++++++++++++++++++-----------
 1 file changed, 28 insertions(+), 11 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d0ec93f..d7c3634 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
 stages:
   - build
+  - models
 #  - test
   - benchmark
 
@@ -17,23 +18,39 @@ build:
   script:
     - ./gradlew --console=plain assemble
 
-#test:
-#  image: openjdk:11
-#  stage: test
-#  needs:
-#    - build
-#  script:
-#    - ./gradlew --console=plain --info test
-#  artifacts:
-#    when: always
-#    reports:
-#      junit: "*/build/test-results/test/**/TEST-*.xml"
+prepareTTCrepo:
+  # use same image as other jobs, and it has git already available
+  image: openjdk:11
+  stage: models
+  script:
+    - git clone --depth=1 git@github.com:TransformationToolContest/ttc2018liveContest.git /ttc2018liveContest
+    - cd solve/src/test/resources
+    - ln -s /ttc2018liveContest/models .
+  artifacts:
+    paths:
+      - "solve/src/test/resources/models/1"
+      - "solve/src/test/resources/models/2"
+      - "solve/src/test/resources/models/32"
+
+test:
+  image: openjdk:11
+  stage: test
+  needs:
+    - build
+    - models
+  script:
+    - ./gradlew --console=plain --info test
+  artifacts:
+    when: always
+    reports:
+      junit: "*/build/test-results/test/**/TEST-*.xml"
 
 timing:
   image: openjdk:11
   stage: benchmark
   needs:
     - build
+    - models
   script:
     - ./all-timed-benchmark.sh
   artifacts:
-- 
GitLab