diff options
author | Fedja Beader <fedja@protonmail.ch> | 2025-03-18 03:18:38 +0100 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2025-03-18 03:18:38 +0100 |
commit | 93540c986c4050369b42f311ecd71855a7dfe7a9 (patch) | |
tree | c47b97e678e3d4aa083f765ab5ed7a4379f7ee73 | |
parent | e9950daf9ac10bf7a0f49ba0accd26bb318b2603 (diff) | |
download | clientdata-93540c986c4050369b42f311ecd71855a7dfe7a9.tar.gz clientdata-93540c986c4050369b42f311ecd71855a7dfe7a9.tar.bz2 clientdata-93540c986c4050369b42f311ecd71855a7dfe7a9.tar.xz clientdata-93540c986c4050369b42f311ecd71855a7dfe7a9.zip |
Split the job out
-rw-r--r-- | .gitlab-ci.yml | 13 | ||||
-rwxr-xr-x | .tools/old_manaplus.sh | 34 |
2 files changed, 46 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eac9e938..c9eb46f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,7 +25,7 @@ before_script: manaplus: stage: test - image: debian:buster + image: debian:unstable script: - ./.tools/manaplus.sh artifacts: @@ -34,6 +34,17 @@ manaplus: when: always expire_in: 3 week +old_manaplus: + stage: test + image: debian:buster + script: + - ./.tools/old_manaplus.sh + artifacts: + paths: + - shared + when: always + expire_in: 3 week + .newlines: stage: test tags: diff --git a/.tools/old_manaplus.sh b/.tools/old_manaplus.sh new file mode 100755 index 00000000..d8446179 --- /dev/null +++ b/.tools/old_manaplus.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +source ./.tools/init.sh + +clientdata_init + +aptget_update +# Evidently libcurl3-gnutls ships libcurl4-gnutls.so.4 +aptget_install \ + libcurl3-gnutls \ + libsdl-gfx1.2 libsdl-image1.2 libsdl-mixer1.2 libsdl-net1.2 libsdl-ttf2.0 \ + wget unzip + +pwd +ls + +./clientdata/.tools/downloadlib.sh packetver24 manaplus s20180215 || exit 1 + +export HOME=`pwd`/clientdata/shared + +cd manaplus_s20180215 || exit 1 +export SDL_VIDEODRIVER=dummy +./bin/manaplus --version || exit 1 +./bin/manaplus --validate -u -d ../clientdata || exit 1 + +[[ -f "${HOME}/.local/share/mana/manaplus.log" ]] || exit 1 +grep -A 10 "Assert:" "${HOME}/.local/share/mana/manaplus.log" + +if [ "$?" == 0 ]; then + echo "Asserts found" + exit 1 +fi + +cd .. |