-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
48 lines (44 loc) · 1.84 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
sudo: false
install: true
dist: xenial
notifications:
email: false
services:
- xvfb
matrix:
include:
- os: linux
language: c++
compiler: clang
env: QF_ARCH=x86_64
addons:
apt:
packages:
- clang
- cmake
- build-essential
- libsdl2-dev
- libopenal-dev
- libjpeg8-dev
- libvorbis-dev
- libtheora-dev
- libfreetype6-dev
- zlib1g-dev
- libcurl4-gnutls-dev
install:
- export CC=clang CXX=clang++ && git submodule update --init --recursive && cd sdk/source/source && cmake . && make -j4
- cd build
- mkdir -p base/cache
- mkdir -p base/glsl
- mkdir -p base/configs/server/gametypes
- echo -e "rm -rf base/cache/*" > ./clear_cache.sh && chmod +x ./clear_cache.sh
- echo -e "wait\\nwait\\nquit" > base/autoexec_postinit.cfg
- echo -e "#!/bin/bash\\n./qfusion +set developer 1 +set fs_cdpath $TRAVIS_BUILD_DIR/game +set fs_usehomedir 0" > ./run_client.sh && chmod +x ./run_client.sh
- echo -e "#!/bin/bash\\n./qfusion_server +set developer 1 +set fs_cdpath $TRAVIS_BUILD_DIR/game +set fs_usehomedir 0" > run_server.sh && chmod +x run_server.sh
- echo -e "#!/bin/bash\\necho -e \"set g_gametype_generic 0\\nset g_gametype \$1\\nmap box\" > base/dedicated_autoexec_postinit.cfg && echo -e \"wait\\nwait\\nquit\" >base/configs/server/gametypes/\$1.cfg && ./run_server.sh" > run_gt.sh && chmod +x run_gt.sh
before_script:
- "export GALLIUM_DRIVER=\"softpipe\""
script:
- ./clear_cache.sh && ./run_client.sh
- ./clear_cache.sh && cp $TRAVIS_BUILD_DIR/tests/data/glsl.cache base/glsl/glsl.cache.default && ./run_client.sh
- ./clear_cache.sh && find $TRAVIS_BUILD_DIR/game/base/progs/gametypes -maxdepth 1 -type f -name *.gt -exec basename {} .gt \; | xargs -I{} ./run_gt.sh {} \;