From afe65dc0a52898ce4f35dd39ed219d14f25d3419 Mon Sep 17 00:00:00 2001
From: mkirsz <s1351949@sms.ed.ac.uk>
Date: Mon, 11 Mar 2024 14:41:07 +0000
Subject: [PATCH] Example testing tweaks...

---
 .gitlab-ci.yml | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a04ad88..92dd5c1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -111,11 +111,11 @@ build-example-1-static:
   script:
     - cd $RELEASE_DIR
     - make install
-    - cd ${RELEASE_DIR}/examples/ex_1
+    - cd ../examples/ex_1
     - g++ -O3 ex1.cpp -ltadah -llapack -fopenmp
   artifacts:
     paths:
-      - $RELEASE_DIR/examples/ex_1/a.out
+      - examples/ex_1/a.out
 
 build-example-2-static:
   stage: build.examples
@@ -123,11 +123,11 @@ build-example-2-static:
   script:
     - cd $RELEASE_DIR
     - make install
-    - cd ${RELEASE_DIR}/examples/ex_2
+    - cd ../examples/ex_2
     - g++ -O3 ex2.cpp -ltadah -llapack -fopenmp
   artifacts:
     paths:
-      - $RELEASE_DIR/examples/ex_2/a.out
+      - examples/ex_2/a.out
 
 build-example-1-shared:
   stage: build.examples
@@ -135,11 +135,11 @@ build-example-1-shared:
   script:
     - cd $RELEASE_DIR
     - make install
-    - cd ${RELEASE_DIR}/examples/ex_1
+    - cd ../examples/ex_1
     - g++ -O3 ex1.cpp -ltadah -llapack -fopenmp
   artifacts:
     paths:
-      - $RELEASE_DIR/examples/ex_1/a.out
+      - examples/ex_1/a.out
 
 build-example-2-shared:
   stage: build.examples
@@ -147,17 +147,17 @@ build-example-2-shared:
   script:
     - cd $RELEASE_DIR
     - make install
-    - cd ${RELEASE_DIR}/examples/ex_2
+    - cd ../examples/ex_2
     - g++ -O3 ex2.cpp -ltadah -llapack -fopenmp
   artifacts:
     paths:
-      - $RELEASE_DIR/examples/ex_2/a.out
+      - examples/ex_2/a.out
 
 run-example-1-static:
   stage: run.examples
   needs: [build-example-1-static]
   script:
-    - cd ${RELEASE_DIR}/examples/ex_1
+    - cd examples/ex_1
     - ./a.out
     - diff energy.pred EXPECTED_OUTPUT/energy.pred
     - if  $? -ne 0 ]; then exit 1; fi
@@ -171,7 +171,7 @@ run-example-2-static:
   stage: run.examples
   needs: [build-example-2-static]
   script:
-    - cd ${RELEASE_DIR}/examples/ex_2
+    - cd examples/ex_2
     - ./a.out
     - diff energy.pred EXPECTED_OUTPUT/energy.pred
     - if  $? -ne 0 ]; then exit 1; fi
@@ -187,7 +187,7 @@ run-example-1-shared:
   script:
     - cd $RELEASE_DIR
     - make install
-    - cd ${RELEASE_DIR}/examples/ex_1
+    - cd ../examples/ex_1
     - ./a.out
     - diff energy.pred EXPECTED_OUTPUT/energy.pred
     - if  $? -ne 0 ]; then exit 1; fi
@@ -203,7 +203,7 @@ run-example-2-shared:
   script:
     - cd $RELEASE_DIR
     - make install
-    - cd ${RELEASE_DIR}/examples/ex_2
+    - cd ../examples/ex_2
     - ./a.out
     - diff energy.pred EXPECTED_OUTPUT/energy.pred
     - if  $? -ne 0 ]; then exit 1; fi
-- 
GitLab