forked from Qfusion/asprogs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (38 loc) · 1.6 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
sudo: false
install: true
dist: trusty
notifications:
email: false
matrix:
include:
- os: linux
language: c++
compiler: clang
env: QF_ARCH=x86_64
addons:
apt:
packages:
- clang
- cmake
- build-essential
- zlib1g-dev
- libcurl4-gnutls-dev
install:
- export CC=clang CXX=clang++ && cd $HOME && git clone --depth 1 https://github.com/Qfusion/rapid.git && cd rapid/sdk/source && git submodule update --init --recursive && cd source && cmake -DSERVER_ONLY=1 . && make -j4
- cd $HOME/rapid/sdk/source/source/build && ln -s $TRAVIS_BUILD_DIR base/progs && cp ../../../../game/base/map_box.pk3 base/map_box.pk3 && mkdir -p base/configs/server/gametypes
- echo "echo -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" > init_gt.sh && chmod +x ./init_gt.sh
- echo "./qfusion_server.x86_64 +set developer 1" > ./run_srv.sh && chmod +x ./run_srv.sh
script:
- ./init_gt.sh bomb && ./run_srv.sh
- ./init_gt.sh ca && ./run_srv.sh
- ./init_gt.sh ctf && ./run_srv.sh
- ./init_gt.sh ctftactics && ./run_srv.sh
- ./init_gt.sh da && ./run_srv.sh
- ./init_gt.sh dm && ./run_srv.sh
- ./init_gt.sh duel && ./run_srv.sh
- ./init_gt.sh ffa && ./run_srv.sh
- ./init_gt.sh headhunt && ./run_srv.sh
- ./init_gt.sh race && ./run_srv.sh
- ./init_gt.sh rekt && ./run_srv.sh
- ./init_gt.sh tdm && ./run_srv.sh
- ./init_gt.sh tutorial && ./run_srv.sh