From: TimePath Date: Mon, 4 Jan 2016 04:58:52 +0000 (+1100) Subject: gitlab-ci: run unit tests X-Git-Tag: xonotic-v0.8.2~1294 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3a39f882a9e6147c28cd2bf6bac35940515fa40c;p=xonotic%2Fxonotic-data.pk3dir.git gitlab-ci: run unit tests --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e1ab2878f..8b292b7bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,18 @@ before_script: + - git clone --depth=1 --branch=master https://gitlab.com/xonotic/darkplaces.git darkplaces + - cd darkplaces && make sv-debug -j $(nproc) + - cd .. + - export ENGINE="$PWD/darkplaces/darkplaces-dedicated -xonotic" + - git clone --depth=1 --branch=master https://gitlab.com/xonotic/gmqcc.git gmqcc - - cd gmqcc - - make -j $(nproc) + - cd gmqcc && make -j $(nproc) - cd .. - - export QCC=$PWD/gmqcc/gmqcc + - 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: script: - make + - ${ENGINE} +map gitlab-ci +sv_cmd runtest +exit