forked from cmangos/mangos-tbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (81 loc) · 2.29 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#
# This file is part of the CMaNGOS Project. See AUTHORS file for Copyright information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
language: cpp
cache: ccache
# reduce clone time by only getting the latest commit and not the whole history (default for travis is 100)
git:
depth: 1
# make use of the new container based infrastructure at travis to improve performance (we don't need sudo)
sudo: false
# use ubuntu 14.04 VM
dist: trusty
# don't re-build for tags so that [publish binary] is not re-run
# https://github.com/travis-ci/travis-ci/issues/1532
branches:
except:
- /^Last_.*/
os:
- linux
- osx
compiler:
- clang
- gcc
env:
- BUILD_TYPE=Release
- BUILD_TYPE=Release PCH_FLAG=ON
matrix:
exclude:
- os: osx
compiler: gcc
- os: osx
env: BUILD_TYPE=Release PCH_FLAG=ON
addons:
apt:
sources:
- kubuntu-backports
- boost-latest
- ubuntu-toolchain-r-test
packages:
- build-essential
- libtool
- gcc-4.8
- g -4.8
- make
- cmake
- libboost1.55-dev
- libboost-system1.55-dev
- libboost-program-options1.55-dev
- libboost-thread1.55-dev
- libboost-regex1.55-dev
# overwrite GCC version for GCC build only
before_install:
- if [ $CC = "gcc" ] ; then export CC=gcc-4.8 CXX=g -4.8 ; fi
install: |-
if [ "$TRAVIS_OS_NAME" == "osx" ]
then
brew update
brew install [email protected]
fi
script: |-
mkdir _build
mkdir _install
cd _build
export CCACHE_SLOPPINESS=pch_defines,time_macros
cmake -DCMAKE_INSTALL_PREFIX=../_install -DBUILD_EXTRACTORS=ON -DBUILD_PLAYERBOT=ON -DPCH=$PCH_FLAG ..
make -j2
make install