From 3a39f882a9e6147c28cd2bf6bac35940515fa40c Mon Sep 17 00:00:00 2001 From: TimePath Date: Mon, 4 Jan 2016 15:58:52 +1100 Subject: [PATCH] gitlab-ci: run unit tests --- .gitlab-ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 -- 2.39.2