X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=.gitlab-ci.yml;h=c628e3f8e7ecaedc5a49e2ba7e290dd725c9745c;hb=1909ae4e0dd57da74bb80157df993de46927c8a3;hp=e345c88d9f086b41b825523f6468e07919cf3cd4;hpb=37cf62041a76248472ef6a78feaaed33e35a2260;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e345c88d9..c628e3f8e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,17 @@ before_script: - cd gmqcc && make -j $(nproc) && export QCC="$PWD/gmqcc" - cd .. +report_cloc: + stage: test + script: + - cloc --force-lang-def=qcsrc/tools/cloc.txt --sql 1 --sql-project xonotic qcsrc | sqlite3 code.db + - sqlite3 code.db 'select file,nCode from t where nCode > 1000 order by nBlank+nComment+nCode desc' + +test_compilation_units: + stage: test + script: + - ./qcsrc/tools/compilationunits.sh + test_sv_game: stage: test script: @@ -12,9 +23,13 @@ test_sv_game: - cd darkplaces && make sv-debug -j $(nproc) && export ENGINE="$PWD/darkplaces-dedicated -xonotic" - cd .. - - wget -O data/g-23.pk3 http://beta.xonotic.org/autobuild-bsp/latest/g-23.pk3 + - mkdir -p data/maps + - wget -O data/stormkeep.pk3 http://beta.xonotic.org/autobuild-bsp/latest/stormkeep.pk3 + - wget -O data/maps/stormkeep.mapinfo https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/stormkeep.mapinfo + - wget -O data/maps/stormkeep.waypoints https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/stormkeep.waypoints + - wget -O data/maps/stormkeep.waypoints.cache https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/stormkeep.waypoints.cache - make - - EXPECT=8573348372f9b9f82183b01598950eb5 + - EXPECT=10e723491b6fe610fe969dae0ef3a783 - HASH=$(${ENGINE} -noconfig -nohome +exec serverbench.cfg | tee /dev/stderr | grep '^:' @@ -41,11 +56,6 @@ test_sv_unit: done < <(${ENGINE} +developer 1 +map gitlab-ci +sv_cmd runtest +exit) - exit 1 -test_compilation_units: - stage: test - script: - - ./qcsrc/tools/compilationunits.sh - doxygen: # rename to 'pages' when gitlab.com allows pages to exceed 100MiB stage: deploy script: