forked from Qfusion/qfusion
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
70 lines (67 loc) · 2.05 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
sudo: false
dist: trusty
cache:
apt: true
directories:
- $HOME/.deps
notifications:
email:
recipients:
on_success: change
on_failure: always
matrix:
include:
#- os: osx
# osx_image: xcode8.3
# env: QF_ARCH=OSX
# language: c++
# compiler: clang
- os: linux
language: c++
compiler: gcc-4.9
env: QF_ARCH=x86
addons:
apt:
sources:
- kubuntu-backports
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- cmake
- build-essential
- gcc-4.9-multilib
- g++-4.9-multilib
- gcc-multilib
- 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:
- if [[ "$QF_ARCH" == "x86_64" ]]; then export CC=clang CXX=clang++; fi
- if [[ "$QF_ARCH" == "x86" ]]; then export CC=gcc-4.9 CXX=g++-4.9; fi
- cd "$TRAVIS_BUILD_DIR/source"
- if [[ "$QF_ARCH" == "x86_64" ]]; then cmake -DQFUSION_APPLICATION_VERSION_HEADER=\"version.warsow.h\" .; fi
- if [[ "$QF_ARCH" == "x86" ]]; then cmake -DQFUSION_APPLICATION_VERSION_HEADER=\"version.warsow.h\" -DCMAKE_TOOLCHAIN_FILE=cmake/i386-linux-gnu.cmake -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DGAME_MODULES_ONLY=1 .; fi
#- if [[ "$QF_ARCH" == "OSX" ]]; then cmake -DQFUSION_APPLICATION_VERSION_HEADER=\"version.warsow.h\" -G Xcode .; fi
- cd "$TRAVIS_BUILD_DIR"
script:
- cd source
- if [[ "$QF_ARCH" == "x86_64" ]]; then make -j8; fi
- if [[ "$QF_ARCH" == "x86" ]]; then make -j8 game cgame; fi
#- if [[ "$QF_ARCH" == "OSX" ]]; then xcodebuild -project qfusion.xcodeproj/ -jobs 4 -configuration Release -target ALL_BUILD; fi