summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2023-12-14 23:22:52 +0100
committerFedja Beader <fedja@protonmail.ch>2024-03-18 21:45:56 +0100
commitebf078b9fa81142834dc45e22ea661a61c50d17b (patch)
tree047f645931fdb0715afe784b8bc445743a78a371
parent6071d37c4127aafef84ba1144ac1055972426116 (diff)
downloadtmwa-ebf078b9fa81142834dc45e22ea661a61c50d17b.tar.gz
tmwa-ebf078b9fa81142834dc45e22ea661a61c50d17b.tar.bz2
tmwa-ebf078b9fa81142834dc45e22ea661a61c50d17b.tar.xz
tmwa-ebf078b9fa81142834dc45e22ea661a61c50d17b.zip
Add CI test stage
+Pass artifacts (well, the whole repo) to test stage +YAML syntax error. Since I saw a glimpse of the repo being reinitialised two tries ago, perhaps it saves everything tracked and just adding untracked files should be enough.
-rw-r--r--.gitlab-ci.yml41
1 files changed, 40 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 67559b8..f7c750a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
# Copied in from Moubootaur Legends's Hercules .gitlab-ci.yml
stages:
- build
+ - test
variables: &base_vars
DEBIAN_COMMON_PACKAGES: make git gcc g++
@@ -10,7 +11,6 @@ variables: &base_vars
.prerequisites: &prerequisites
before_script:
- - echo "Building TMW Athena $CI_BUILD_NAME"
- uname -a
- apt-get update
- apt-get install -y -qq $INSTALL_PACKAGES $DEBIAN_COMMON_PACKAGES
@@ -25,6 +25,7 @@ re:ubuntu1804:build:
<<: *base_vars
INSTALL_PACKAGES: python
script:
+ - echo "Building TMW Athena $CI_BUILD_NAME"
- git submodule update --init
- git fetch -t
- printf "Building TMW Athena version %s\n" "$(git describe --tags HEAD)"
@@ -32,6 +33,12 @@ re:ubuntu1804:build:
- make
- whoami
- make install
+ artifacts: # required for test stage
+ untracked: true
+ expire_in: 30 mins
+
+
+
# Next server OS?
re:ubuntu2204:build:
@@ -50,3 +57,35 @@ re:ubuntu2204:build:
- make
- whoami
- make install
+ artifacts: # required for test stage
+ untracked: true
+ expire_in: 30 mins
+
+
+
+
+# Disabled. fails with:
+# (1) GDB failing to resolve a type
+# (2) /usr/bin/ld: Dwarf Error: Can't find .debug_ranges section.
+.re:ubuntu1804:test:
+ <<: *prerequisites
+ stage: test
+ image: ubuntu:18.04
+ variables:
+ <<: *base_vars
+ INSTALL_PACKAGES: python gdb
+ script:
+ - printf "Testing TMW Athena version %s\n" "$(git describe --tags HEAD)"
+ - make test
+
+re:ubuntu2204:test:
+ <<: *prerequisites
+ stage: test
+ image: ubuntu:22.04
+ variables:
+ <<: *base_vars
+ INSTALL_PACKAGES: python2 gdb
+ script:
+ - ln -s /usr/bin/python2 /usr/bin/python
+ - printf "Testing TMW Athena version %s\n" "$(git describe --tags HEAD)"
+ - make test