summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeyorp <TheFreeYorp+git@gmail.com>2024-06-05 23:50:40 +0000
committerFreeyorp <TheFreeYorp+git@gmail.com>2024-06-06 00:03:57 +0000
commitecef2b6bf1e49a62acf4b9baf9a927835fa03e91 (patch)
tree374f090521b17464f13affc8a2804907bb24e528
parent43b4957af6f12a3aecde7121b16f34a26b9032ba (diff)
downloadtmwa-ecef2b6bf1e49a62acf4b9baf9a927835fa03e91.tar.gz
tmwa-ecef2b6bf1e49a62acf4b9baf9a927835fa03e91.tar.bz2
tmwa-ecef2b6bf1e49a62acf4b9baf9a927835fa03e91.tar.xz
tmwa-ecef2b6bf1e49a62acf4b9baf9a927835fa03e91.zip
CI: Split attoconf and cmake artifacts
Artifacts of the same name from different runs can overwrite each other. This makes sure that tests of the cmake pipeline actually test the cmake artifacts, and similarly for attoconf.
-rw-r--r--.gitignore4
-rw-r--r--.gitlab-ci.yml23
2 files changed, 18 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index fdc00ac..34afd74 100644
--- a/.gitignore
+++ b/.gitignore
@@ -34,3 +34,7 @@
# generic build
/build/
+
+# CI build
+/build-atto/
+/build-cmake/
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a8b9374..f049110 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,8 +28,8 @@ re:ubuntu1804-attoconf:build:
- git submodule update --init
- git fetch -t
- printf "Building TMW Athena version %s\n" "$(git describe --tags HEAD)"
- - mkdir build
- - cd build
+ - mkdir build-atto
+ - cd build-atto
- ../configure --user
- make
- whoami
@@ -50,8 +50,8 @@ re:ubuntu2204-attoconf:build:
- git submodule update --init
- git fetch -t
- printf "Building TMW Athena version %s\n" "$(git describe --tags HEAD)"
- - mkdir build
- - cd build
+ - mkdir build-atto
+ - cd build-atto
- ../configure --user
- make
- whoami
@@ -72,8 +72,8 @@ re:ubuntu2204:build:
- git submodule update --init
- git fetch -t
- printf "Building TMW Athena version %s\n" "$(git describe --tags HEAD)"
- - mkdir build
- - cd build
+ - mkdir build-cmake
+ - cd build-cmake
- cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local ..
- make
- whoami
@@ -90,34 +90,39 @@ re:ubuntu2204:build:
<<: *prerequisites
stage: test
image: ubuntu:18.04
+ needs: ["ubuntu1804-attoconf:build"]
variables:
<<: *base_vars
INSTALL_PACKAGES: python3 gdb
script:
- printf "Testing TMW Athena version %s\n" "$(git describe --tags HEAD)"
- - cd build
+ - cd build-atto
- make test
+
+# Enabled tests
re:ubuntu2204-attoconf:test:
<<: *prerequisites
stage: test
image: ubuntu:22.04
+ needs: ["re:ubuntu2204-attoconf:build"]
variables:
<<: *base_vars
INSTALL_PACKAGES: python3 gdb
script:
- printf "Testing TMW Athena version %s\n" "$(git describe --tags HEAD)"
- - cd build
+ - cd build-atto
- make test
re:ubuntu2204:test:
<<: *prerequisites
stage: test
image: ubuntu:22.04
+ needs: ["re:ubuntu2204:build"]
variables:
<<: *base_vars
INSTALL_PACKAGES: python3 gdb
script:
- printf "Testing TMW Athena version %s\n" "$(git describe --tags HEAD)"
- - cd build
+ - cd build-cmake
- make test