From d06442894f4336e41328d439aa97ff4335efcf83 Mon Sep 17 00:00:00 2001 From: TimePath Date: Thu, 7 Jan 2016 16:55:43 +1100 Subject: [PATCH] CI: run serverbench --- .gitlab-ci.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 933eb4b06..8e4ee84c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,10 +10,11 @@ before_script: - export QCC="$PWD/gmqcc/gmqcc" - ln -s $PWD data/xonotic-data.pk3dir - - mkdir maps && wget -O maps/gitlab-ci.bsp https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/_init/_init.bsp -build: +test_sv_unit: + stage: test script: + - mkdir maps && wget -O maps/gitlab-ci.bsp https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/_init/_init.bsp - make - while read line; do echo $line; @@ -21,6 +22,23 @@ build: done < <(${ENGINE} +developer 1 +map gitlab-ci +sv_cmd runtest +exit) - exit 1 +test_sv_game: + stage: test + script: + - wget -O data/g-23.pk3 http://beta.xonotic.org/autobuild-bsp/latest/g-23.pk3 + - make + - EXPECT=dd534b9e83d5e07cd43e0a13ac61a646 + - HASH=$(${ENGINE} -noconfig -nohome +exec serverbench.cfg + | tee /dev/stderr + | grep '^:' + | grep -v '^:gamestart:' + | grep -v '^:anticheat:' + | md5sum | awk '{ print $1 }') + - echo 'expected:' $EXPECT + - echo ' actual:' $HASH + - test "$HASH" == "$EXPECT" + - exit $? + doxygen: # rename to 'pages' when gitlab.com allows pages to exceed 100MiB stage: deploy script: -- 2.39.2