2 - git clone --depth=1 --branch=master https://gitlab.com/xonotic/darkplaces.git darkplaces
3 - cd darkplaces && make sv-debug -j $(nproc)
5 - export ENGINE="$PWD/darkplaces/darkplaces-dedicated -xonotic"
7 - git clone --depth=1 --branch=master https://gitlab.com/xonotic/gmqcc.git gmqcc
8 - cd gmqcc && make -j $(nproc)
10 - export QCC="$PWD/gmqcc/gmqcc"
12 - ln -s $PWD data/xonotic-data.pk3dir
17 - mkdir maps && wget -O maps/gitlab-ci.bsp https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/_init/_init.bsp
21 if [[ $line == "All tests OK" ]]; then exit 0; fi;
22 done < <(${ENGINE} +developer 1 +map gitlab-ci +sv_cmd runtest +exit)
28 - wget -O data/g-23.pk3 http://beta.xonotic.org/autobuild-bsp/latest/g-23.pk3
30 - EXPECT=f077e4e45176d4aedacf943adede6e55
31 - HASH=$(${ENGINE} -noconfig -nohome +exec serverbench.cfg
34 | grep -v '^:gamestart:'
35 | grep -v '^:anticheat:'
36 | md5sum | awk '{ print $1 }')
37 - echo 'expected:' $EXPECT
38 - echo ' actual:' $HASH
39 - test "$HASH" == "$EXPECT"
42 doxygen: # rename to 'pages' when gitlab.com allows pages to exceed 100MiB
47 - for i in {0..0}; do eval $(printf "echo \$id_rsa_%02d\n" $i) >> ~/.ssh/id_rsa_base64; done
48 - base64 --decode ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
49 - chmod 600 ~/.ssh/id_rsa
50 - echo -e "Host *\n\tStrictHostKeyChecking no\n\tLogLevel ERROR\n" >> ~/.ssh/config
51 - git config --global user.name "Gitlab CI"
52 - git config --global user.email "<>"
53 - git clone --single-branch --depth 1 ${DEPLOY_HOST}:${DEPLOY_REPO} ~/deploy_
54 - mkdir ~/deploy && mv ~/deploy_/.git ~/deploy && rm -r ~/deploy_
55 - cp -r ../public/* ~/deploy
56 - cd ~/deploy && git add -A . && git commit -m "Update" && git push origin gh-pages