forked from lesslol/JadeCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
60 lines (53 loc) · 2.53 KB
/
Copy path.travis.yml
File metadata and controls
60 lines (53 loc) · 2.53 KB
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
# Copyright (C) 2013-2016 JadeCore <https://www.jadecore.tk/>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
language: cpp
addons:
apt:
sources:
- george-edison55-precise-backports # cmake 3.2.3
packages:
- cmake
- cmake-data
git:
depth: 1
compiler:
- gcc
before_install:
- sudo add-apt-repository -y ppa:boost-latest/ppa -y
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo add-apt-repository 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.7 main'
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install libace-dev
- sudo apt-get install libncurses5-dev
- sudo apt-get install build-essential autoconf libtool make cmake git-core patch wget links zip unzip unrar
- sudo apt-get install openssl libssl-dev mysql-server mysql-client libmysqlclient15-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev
- sudo apt-get -qq install libboost1.55-dev libboost-thread1.55-dev libboost-filesystem1.55-dev libboost-system1.55-dev libboost-program-options1.55-dev libboost-iostreams1.55-dev libboost-regex1.55-dev
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
install:
- mysql -uroot -e 'create database test_mysql;'
- mkdir bin
- cd bin
- cmake ../ -DSCRIPTS=1 -DTOOLS=1 -DSCRIPTS="dynamic" -DSERVERS=1 -DNOJEM=1 -DWITH_DYNAMIC_LINKING=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=check_install
- cd ..
script:
- $CXX --version
- mysql -uroot < sql/create/create_mysql.sql
- mysql -ujadecore -pjadecore auth < sql/base/auth_database.sql
- cat sql/updates/auth/5.4.8/*_auth.sql | mysql -ujadecore -pjadecore auth
- mysql -ujadecore -pjadecore characters < sql/base/characters_database.sql
- cat sql/updates/characters/5.4.8/*_characters.sql | mysql -ujadecore -pjadecore characters
- mysql -ujadecore -pjadecore world < sql/base/dev/world_database.sql
- cat sql/updates/world/5.4.8/*_world.sql | mysql -ujadecore -pjadecore world
- mysql -uroot < sql/create/drop_mysql.sql
- cd bin
- make -j 8 -k && make install
- cd check_install/bin