]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
gitlab-ci: run unit tests
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 4 Jan 2016 04:58:52 +0000 (15:58 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 4 Jan 2016 04:58:52 +0000 (15:58 +1100)
.gitlab-ci.yml

index e1ab2878f4e229e1a76ef45c7168bc3c64e518eb..8b292b7bb15d4eea8b6119b711207e4e3f6761aa 100644 (file)
@@ -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