forked from cmangos/mangos-tbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
115 lines (105 loc) · 3.35 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#
# 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
#disable cache for now as there is problem with current cmake version
#cache: ccache
# reduce clone time by only getting the latest commit and not the whole history (default for travis is 100)
git:
depth: 1
# 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_.*/
# use ubuntu 18.04 VM
dist:
bionic
# install dpendencies for linux
addons:
apt:
packages:
- build-essential
- libtool
- make
- cmake
- libboost1.65-dev
- libboost-system1.65-dev
- libboost-program-options1.65-dev
- libboost-thread1.65-dev
- libboost-regex1.65-dev
install:
# Install newer cmake
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
- travis_retry wget --no-check-certificate https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2-Linux-x86_64.tar.gz
- tar -xvf cmake-3.16.2-Linux-x86_64.tar.gz > /dev/null
- mv cmake-3.16.2-Linux-x86_64 cmake-install
- PATH=${DEPS_DIR}/cmake-install:${DEPS_DIR}/cmake-install/bin:$PATH
- cd ${TRAVIS_BUILD_DIR}
# build matrix
matrix:
include:
# linux builds on gcc x64
- os: linux
arch: amd64
compiler: gcc
env:
- CC=gcc-7
- CXX=g++-7
# linux builds on clang x64
- os: linux
arch: amd64
compiler: clang
env:
- CC=clang
- CXX=clang++
# # linux builds on gcc ARM64
# - os: linux
# arch: arm64
# compiler: gcc
# env:
# - CC=gcc-7
# - CXX=g++-7
# install:
# # Install newer cmake
# - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
# - mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
# - travis_retry wget --no-check-certificate https://github.com/cyberium/prebuild/releases/download/v1.0/cmake-arm-3.16.2.tar.gz
# - tar -xvf cmake-arm-3.16.2.tar.gz > /dev/null
# - PATH=${DEPS_DIR}/cmake-install:${DEPS_DIR}/cmake-install/bin:$PATH
# - cd ${TRAVIS_BUILD_DIR}
# osx builds on clang x64
- os: osx
osx_image: xcode10
arch: amd64
compiler: clang
env:
- MYSQL_HOME=/usr/local/opt/[email protected]
install:
- brew install [email protected]
- export OPENSSL_ROOT_DIR=$(brew --prefix openssl)
- brew upgrade cmake
script: |-
cmake --version
mkdir _build
mkdir _install
cd _build
export CCACHE_SLOPPINESS=pch_defines,time_macros
cmake -DCMAKE_INSTALL_PREFIX=../_install -DBUILD_EXTRACTORS=ON -DBUILD_AHBOT=ON -DBUILD_PLAYERBOT=ON ..
make -j2
make install