-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
74 lines (65 loc) · 1.72 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
language: cpp
dist: trusty
matrix:
include:
- os: linux
compiler: gcc-5
env: COMPILER=g++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- os: linux
compiler: clang-3.6
env: COMPILER=clang++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty
packages:
- g++-5
- clang-3.6
- llvm-3.6-dev # for LLVMGold.so
- binutils-gold
- os: osx
osx_image: xcode8.3
compiler: clang
branches:
only:
- master
before_install:
- export SYSTEM=$(uname)
- if [ "$SYSTEM" != "Darwin" ]; then sudo apt-get update -qq; fi
- if [ "$SYSTEM" != "Darwin" ]; then sudo apt-get install build-essential m4 libgmp3-dev cmake; fi
install:
- if [ "$COMPILER" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- if [ "$COMPILER" = "clang++" ]; then export CXX="clang++-3.6" CC="clang-3.6"; fi
- if [ "$COMPILER" = "clang++" ]; then sudo update-alternatives --install /usr/bin/ld ld /usr/bin/ld.gold 20; fi
- if [ "$COMPILER" = "clang++" ]; then sudo update-alternatives --install /usr/bin/ld ld /usr/bin/ld.bfd 10; fi
- cd StormLib
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_DYNAMIC_MODULE=1 ..
- make
- sudo make install
- cd ../..
- cd bncsutil/src/bncsutil
- make
- sudo make install
- cd ../../..
script:
- make
- sudo make install
notifications-policy: ¬ifications-policy
on_success: change
on_failure: always
notifications:
email: false
irc:
channels:
- "irc.quakenet.org#clan007"
<<: *notifications-policy