2 - ln -s $PWD data/xonotic-data.pk3dir
4 - git clone --depth=1 --branch=master https://gitlab.com/xonotic/gmqcc.git gmqcc
5 - cd gmqcc && make -j $(nproc) && export QCC="$PWD/gmqcc"
8 test_compilation_units:
11 - ./qcsrc/tools/compilationunits.sh
16 - git clone --depth=1 --branch=master https://gitlab.com/xonotic/darkplaces.git darkplaces
17 - cd darkplaces && make sv-debug -j $(nproc) && export ENGINE="$PWD/darkplaces-dedicated -xonotic"
21 - wget -O data/g-23.pk3 http://beta.xonotic.org/autobuild-bsp/latest/g-23.pk3
22 - wget -O data/maps/g-23.mapinfo https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/g-23.mapinfo
23 - wget -O data/maps/g-23.waypoints https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/g-23.waypoints
24 - wget -O data/maps/g-23.waypoints.cache https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/g-23.waypoints.cache
25 - wget -O data/maps/g-23.waypoints.hardwired https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/g-23.waypoints.hardwired
27 - EXPECT=4bd5b0276cdd100c831c73f0400eca71
28 - HASH=$(${ENGINE} -noconfig -nohome +exec serverbench.cfg
31 | grep -v '^:gamestart:'
32 | grep -v '^:anticheat:'
33 | md5sum | awk '{ print $1 }')
34 - echo 'expected:' $EXPECT
35 - echo ' actual:' $HASH
36 - test "$HASH" == "$EXPECT"
42 - git clone --depth=1 --branch=master https://gitlab.com/xonotic/darkplaces.git darkplaces
43 - cd darkplaces && make sv-debug -j $(nproc) && export ENGINE="$PWD/darkplaces-dedicated -xonotic"
46 - mkdir maps && wget -O maps/gitlab-ci.bsp https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/_init/_init.bsp
50 if [[ $line == "All tests OK" ]]; then exit 0; fi;
51 done < <(${ENGINE} +developer 1 +map gitlab-ci +sv_cmd runtest +exit)
54 doxygen: # rename to 'pages' when gitlab.com allows pages to exceed 100MiB
59 - for i in {0..0}; do eval $(printf "echo \$id_rsa_%02d\n" $i) >> ~/.ssh/id_rsa_base64; done
60 - base64 --decode ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
61 - chmod 600 ~/.ssh/id_rsa
62 - echo -e "Host *\n\tStrictHostKeyChecking no\n\tLogLevel ERROR\n" >> ~/.ssh/config
63 - git config --global user.name "Gitlab CI"
64 - git config --global user.email "<>"
65 - git clone --single-branch --depth 1 ${DEPLOY_HOST}:${DEPLOY_REPO} ~/deploy_
66 - mkdir ~/deploy && mv ~/deploy_/.git ~/deploy && rm -r ~/deploy_
67 - cp -r ../public/* ~/deploy
68 - cd ~/deploy && git add -A . && git commit -m "Deploy ${CI_BUILD_REF}" && git push origin gh-pages