From 4abcff88958c736317726077c86a469216e33315 Mon Sep 17 00:00:00 2001
From: Florian Atteneder <florian.atteneder@uni-jena.de>
Date: Mon, 19 Aug 2024 18:59:12 +0000
Subject: [PATCH] CI: try to reuse precompilation cache at least for
 IntegrationTests
 (https://git.tpi.uni-jena.de/dg/dg1d.jl/-/merge_requests/212)

---
 .gitlab-ci.yml | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8951ed36..0b5ee8d0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,9 +20,8 @@ unittests:
 
 integrationtests:
   script:
-    - julia --project=test/IntegrationTests -e "import Pkg; Pkg.develop(path=\".\"); Pkg.resolve(); Pkg.instantiate()"
     # using !runtest() because Int(false) = 0 and 0 exit code indicates success in shells
-    - julia --project=test/IntegrationTests -e "using IntegrationTests; exit(!IntegrationTests.runtests())"
+    - julia --project=@. -e "using dg1d; using Pkg; Pkg.activate(\"test/IntegrationTests\"); Pkg.develop(path=\".\"); using IntegrationTests; exit(!IntegrationTests.runtests())"
   only:
     - merge_requests
   artifacts:
@@ -34,9 +33,8 @@ integrationtests:
 
 integrationtests-threads:
   script:
-    - julia --project=test/IntegrationTests -e "import Pkg; Pkg.develop(path=\".\"); Pkg.resolve(); Pkg.instantiate()"
     # using !runtest() because Int(false) = 0 and 0 exit code indicates success in shells
-    - julia --project=test/IntegrationTests --threads 8 -e "using IntegrationTests; exit(!IntegrationTests.runtests())"
+    - julia --project=@. --threads 8 -e "using dg1d; using Pkg; Pkg.activate(\"test/IntegrationTests\"); Pkg.develop(path=\".\"); using IntegrationTests; exit(!IntegrationTests.runtests())"
   only:
     - merge_requests
   artifacts:
-- 
GitLab