forked from happy-tree-friends/Eluna-TC-Cata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (63 loc) · 2.01 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
#
# Copyright (C) 2010 - 2014 Eluna Lua Engine <http://emudevs.com/>
# This program is free software licensed under GPL version 3
# Please see the included DOCS/LICENSE.TXT for more information
#
language:
cpp
compiler:
- gcc
- clang
# Only get newest commit
git:
depth: 1
before_install:
# Update GCC and cmake
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update
- sudo apt-get install gcc-4.7 g++-4.7
- sudo update-alternatives --remove gcc /usr/bin/gcc-4.6
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
# - sudo update-alternatives --config gcc
- gcc --version
- wget http://www.cmake.org/files/v2.8/cmake-2.8.12.2.tar.gz > /dev/null
- tar xzf cmake-2.8.12.2.tar.gz > /dev/null
- cd cmake-2.8.12.2
- cmake .
- make -i --jobs=4 > /dev/null
- sudo make -i --jobs=4 install > /dev/null
- cd ../
# Install ACE
# Get ACE
- wget http://download.dre.vanderbilt.edu/previous_versions/ACE-6.0.3.tar.gz > /dev/null
# Unzip ACE to Source/
- tar xzf ACE-6.0.3.tar.gz > /dev/null
# Go to Source/ACE_wrappers
- cd ACE_wrappers/
# Create Source/ACE_wrappers/build
- mkdir build
# Go to Source/ACE_wrappers/build
- cd build
# Install ACE system wide:
- ../configure --disable-ssl > /dev/null
- make -i --jobs=4 > /dev/null
- sudo make -i --jobs=4 install > /dev/null
# Go to Source/
- cd ../../
# Get Eluna
- git submodule init
- git submodule update
# Get latest code for testing
- git submodule foreach git pull origin master
script:
# Create Source/BUILD
- mkdir BUILD
# Create Source/SERVER
- mkdir SERVER
# Go to Source/BUILD
- cd BUILD
# Run cmake and set the BUILD directory as target for solution
- sudo cmake ../ -DPREFIX=/SERVER -DWITH_WARNINGS=1
# Compile (with 4 cores)
- sudo make --jobs=4