From 2bad6c448b880829020a31cbb67329f3f6c7666b Mon Sep 17 00:00:00 2001 From: Anya Helene Bagge <anya@ii.uib.no> Date: Wed, 15 Feb 2023 20:00:43 +0100 Subject: [PATCH] Combine compile and test stages --- .gitlab-ci.yml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2e5576b..7064227 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,4 @@ stages: - - build - test @@ -39,27 +38,11 @@ image: git.app.uib.no:4567/ii/inf222/v23/assignments/test-runner:latest # - build # key: "$CI_JOB_NAME" -# run mvn compile to build the project -build: - stage: build - script: - - '$HOME/run-tests compile' - artifacts: - paths: - - build/ - exclude: - - build/**/*.o - - build/**/*.hi - expire_in: 1 hour - tags: - - autotest - - haskell -# run mvn verify to compile and test the project test: stage: test script: - - '$HOME/run-tests test' + - '$HOME/run-tests compile test' artifacts: paths: - report/ @@ -71,6 +54,3 @@ test: tags: - autotest - haskell -# coverage: '/Total.*?([0-9]{1,3})%/' - dependencies: - - build -- GitLab