From: TimePath Date: Thu, 7 Jan 2016 05:55:43 +0000 (+1100) Subject: CI: run serverbench X-Git-Tag: xonotic-v0.8.2~1265 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d06442894f4336e41328d439aa97ff4335efcf83;p=xonotic%2Fxonotic-data.pk3dir.git CI: run serverbench --- 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: