diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d0ec93fa2838622bc315106375dcb48d13446b18..d7c36340a51fd5b5dd28b2ac25be1539d5add0b1 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: