summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml21
1 files changed, 18 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5430c64..1719df6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,13 +1,14 @@
# Copied in from Moubootaur Legends's Hercules .gitlab-ci.yml
stages:
- build
+ - test
variables: &base_vars
DEBIAN_COMMON_PACKAGES: make python3 git gcc g++
+ GIT_DEPTH: 100 # Will break again eventually.
.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
@@ -16,17 +17,31 @@ variables: &base_vars
variables:
<<: *base_vars
-re:debian-stable:
+re:debian-stable:build:
<<: *prerequisites
stage: build
image: debian:stable
variables:
<<: *base_vars
- GIT_DEPTH: 100 # Will break again eventually.
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)"
- ./configure --user
- make
- make install
+ artifacts: # required for test stage
+ untracked: true
+ expire_in: 30 mins
+
+re:debian-stable:test:
+ <<: *prerequisites
+ stage: test
+ image: debian:stable
+ variables:
+ <<: *base_vars
+ INSTALL_PACKAGES: gdb
+ script:
+ - printf "Testing TMW Athena version %s\n" "$(git describe --tags HEAD)"
+ - make test