forked from vmangos/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (57 loc) · 1.94 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
#Travis jobs summary:
# - 2 x86_64 jobs using gcc/clang
# - 1 windows job using visual studio 2017
language: c++
arch:
- amd64 #x86_64
dist: xenial
compiler:
- gcc
- clang
addons:
apt:
packages:
- libtbb-dev
- libcurl4-openssl-dev
- libace-dev
- libmysql++-dev
install:
- export TBB_ROOT_DIR=/usr/include/tbb/
- export ACE_ROOT=/usr/include/ace/
matrix:
include:
#Windows build amd64 Visual Studio
- name: "Windows build Visual Studio"
os: windows
arch: amd64
env:
- ACE_VERSION=6.5.11
- ACE_VERSION2=6_5_11
- TBB_VERSION=2020.3
install:
- export ACE_ROOT=$TRAVIS_BUILD_DIR/ACE_wrappers
- export TBB_ROOT_DIR=$TRAVIS_BUILD_DIR/tbb
- wget http://github.com/DOCGroup/ACE_TAO/releases/download/ACE%2BTAO-$ACE_VERSION2/ACE-$ACE_VERSION.zip
- unzip ACE-$ACE_VERSION.zip
- rm ACE-$ACE_VERSION.zip
- echo "#include \"ace/config-win32.h\"" >> $ACE_ROOT/ace/config.h
- wget https://github.com/oneapi-src/oneTBB/releases/download/v$TBB_VERSION/tbb-$TBB_VERSION-win.zip
- unzip tbb-$TBB_VERSION-win.zip
- rm tbb-$TBB_VERSION-win.zip
- choco install -y make
- choco install -y openssl
scripts:
- cd $ACE_ROOT
- /c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/MSBuild/15.0/Bin/MSBuild.exe "ACE_wrappers_vs2017.sln" //p:Configuration=Release //p:Platform=x64 //t:ACE //m:2
- cd $TRAVIS_BUILD_DIR
- mkdir build
- cd build
- cmake -D TBB_ROOT_DIR=$TBB_ROOT_DIR -G "Visual Studio 15 2017 Win64" ..
- /c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/MSBuild/15.0/Bin/MSBuild.exe "MaNGOS.sln" //p:Platform=x64 //p:Configuration=Release //m:2
scripts: |-
mkdir build
mkdir _install
cd build
cmake -DCMAKE_INSTALL_PREFIX=../_install -DDEBUG=0 -DUSE_LIBCURL=1 ..
make -j2
make install