forked from libbitcoin/libbitcoin-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·131 lines (112 loc) · 3.69 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Bitprim.Server
#
# Copyright (c) 2016 Bitprim developers (see AUTHORS)
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
language: cpp
# sudo: false
# sudo: required
# dist: trusty
git:
submodules: false
matrix:
include:
# Linux clang-3.6 Debug
- env: CLANG_VERSION=3.6 CXX_FLAGS="-std=c++11" BUILD_TYPE=Debug
os: linux
sudo: required
dist: trusty
cache:
ccache: true
timeout: 1000
directories:
- $HOME/boost
- $HOME/protobuf
- $HOME/zeromq
addons: &clang36
apt:
packages:
- clang-3.6
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
matrix:
include:
- os: osx
compiler: clang
env: LINK=dynamic
- os: osx
compiler: clang
env: LINK=static
- os: linux
compiler: clang
env: LINK=dynamic
apt:
sources:
- sourceline: 'ppa:h-rayflood/llvm'
packages:
- clang-3.4
- os: linux
compiler: clang
env: LINK=static
apt:
sources:
- sourceline: 'ppa:h-rayflood/llvm'
packages:
- clang-3.4
- os: linux
compiler: gcc
env: LINK=dynamic
apt:
packages:
- bash-completion
- os: linux
compiler: gcc
env: LINK=static
apt:
packages:
- lcov
- bash-completion
fast_finish:
- true
before_install:
# Set aliases for readability.
- if [[ $CC == gcc ]]; then GCC=true; fi
- if [[ $CC == clang ]]; then CLANG=true; fi
- if [[ $LINK == static ]]; then STATIC=true; fi
- if [[ $LINK == dynamic ]]; then DYNAMIC=true; fi
- if [[ $TRAVIS_OS_NAME == osx ]]; then OSX=true; fi
- if [[ $TRAVIS_OS_NAME == linux ]]; then LINUX=true; fi
install:
############################################################################
# All the dependencies are installed in ${TRAVIS_BUILD_DIR}/deps/
############################################################################
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
# Export CC/CXX to control gcc version.
- if [[ $GCC ]]; then export CC=gcc-4.8; export CXX=g++-4.8; fi
# Download and install packages.
- if [[ $OSX && $CLANG && $DYNAMIC ]]; then brew unlink boost; brew install boost; fi
- if [[ $OSX && $CLANG && $DYNAMIC ]]; then brew unlink bash-completion; brew install bash-completion; fi
script:
before_script:
############################################################################
# Set the git identity (for pushing the documentation and the benchmarks)
############################################################################
- git config --global user.name "Travis bot"
- git config --global user.email [email protected]
- if [ -n "$GCC_VERSION" ]; then export CXX_FLAGS="${CXX_FLAGS} -Wall -Wextra"; fi
- if [ -n "$CLANG_VERSION" ]; then export CXX_FLAGS="${CXX_FLAGS} -Wall -Wextra"; fi
- cd ${TRAVIS_BUILD_DIR}
- mkdir build
- cd build
- cmake .. -DWITH_TESTS=OFF -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_FLAGS="${CXX_FLAGS}" ${BOOST_OPTS}
script:
- make -j2
- sudo make install
notifications:
email: false
webhooks:
urls: https://webhooks.gitter.im/e/a19dd2b03bf676d2b622
on_success: change
on_failure: always