forked from AscEmu/AscEmu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (48 loc) · 1.74 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
language: cpp
# only run travis on the master branch
branches:
only:
- master
- coverity_scan
# define complier for build
compiler:
- gcc
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "Zk3bAxnp4OHPMMZYOSoM2chuMZXomp7BFcT54/Ag6C8RCqtpqQ+E6yHRp861xdWSVo9uZ/uGmD1pwPiIUK8Vs80+OwhFVvtor2MGXyQKX1oFYBg0mo5Z3Xzy+OPa3e0YBbe6SSqdUzDE1hIa7OrU8GWciIMobWQS7XIBbWg3TFU="
#before_install:
# - echo "yes" | sudo add-apt-repository ppa:kalakris/cmake
# - echo "yes" | sudo add-apt-repository ppa:ubuntu-toolchain-r/test
# - sudo apt-get -qq update
# - sudo apt-get -qq install build-essential libtool gcc-4.8 g++-4.8 make cmake
# - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
# - sudo apt-get install -qq libbz2-dev libncurses5-dev libmysqlclient-dev libreadline-dev libsdl1.2-dev libssl-dev zlib1g-dev
# experimental config
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get -qq install zlib1g-dev libssl-dev libpcre3-dev libmysqlclient-dev gcc-4.8 g++-4.8
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90
addons:
coverity_scan:
project:
name: "AscEmu/AscEmu"
description: "3.3.5 World of Warcraft game server"
notification_email: autokaori@gmail.com
build_command_prepend: "make clean"
build_command: "make -j 4" # use limited workers to avoid running out of memory
branch_pattern: coverity_scan
install:
- mkdir bin
- cd bin
- cmake ../
script:
- cd ..
- cd bin
- gcc --version
- g++ --version
- cmake --version
- make -j 10