File tree Expand file tree Collapse file tree 3 files changed +25
-35
lines changed Expand file tree Collapse file tree 3 files changed +25
-35
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ language: cpp
3
3
4
4
env :
5
5
global :
6
+ - LLVM_VERSION=3.8.0
6
7
# Maintenance note: to move to a new version
7
8
# of boost, update both BOOST_ROOT and BOOST_URL.
8
9
# Note that for simplicity, BOOST_ROOT's final
@@ -24,18 +25,6 @@ packages: &gcc5_pkgs
24
25
# Provides a backtrace if the unittests crash
25
26
- gdb
26
27
27
- packages : &clang36_pkgs
28
- - clang-3.6
29
- - g++-5
30
- - python-software-properties
31
- - protobuf-compiler
32
- - libprotobuf-dev
33
- - libssl-dev
34
- - libstdc++6
35
- - binutils-gold
36
- # Provides a backtrace if the unittests crash
37
- - gdb
38
-
39
28
matrix :
40
29
include :
41
30
- compiler : gcc
@@ -50,25 +39,17 @@ matrix:
50
39
addons : *ao_gcc5
51
40
52
41
- compiler : clang
53
- env : GCC_VER=5 TARGET=debug CLANG_VER=3.6
54
- addons : &ao_clang36
55
- apt :
56
- sources : ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6']
57
- packages : *clang36_pkgs
42
+ env : GCC_VER=5 TARGET=debug CLANG_VER=3.8 PATH=$PWD/llvm-$LLVM_VERSION/bin:$PATH
43
+ addons : *ao_gcc5
58
44
59
45
- compiler : clang
60
- env : GCC_VER=5 TARGET=debug.nounity CLANG_VER=3.6
61
- addons : *ao_clang36
62
-
63
- # Temporary workaround while the llvm apt repository is down.
64
- # TODO: REMOVE THIS if/when clang builds become reliable again.
65
- allow_failures :
66
- - env : GCC_VER=5 TARGET=debug CLANG_VER=3.6
67
- - env : GCC_VER=5 TARGET=debug.nounity CLANG_VER=3.6
46
+ env : GCC_VER=5 TARGET=debug.nounity CLANG_VER=3.8 PATH=$PWD/llvm-$LLVM_VERSION/bin:$PATH
47
+ addons : *ao_gcc5
68
48
69
49
cache :
70
50
directories :
71
51
- $BOOST_ROOT
52
+ - llvm-$LLVM_VERSION
72
53
73
54
before_install :
74
55
- bin/ci/ubuntu/install-dependencies.sh
Original file line number Diff line number Diff line change 9
9
test -x $( type -p ${g} -$GCC_VER )
10
10
ln -sv $( type -p ${g} -$GCC_VER ) $HOME /bin/${g}
11
11
done
12
- for c in clang clang++
13
- do
14
- test -x $( type -p ${c} -$CLANG_VER )
15
- ln -sv $( type -p ${c} -$CLANG_VER ) $HOME /bin/${c}
16
- done
17
- export PATH=$PWD /bin:$PATH
12
+
13
+ if [[ -n ${CLANG_VER:- } ]]; then
14
+ # There are cases where the directory exists, but the exe is not available.
15
+ # Use this workaround for now.
16
+ if [[ ! -x llvm-${LLVM_VERSION} /bin/llvm-config ]] && [[ -d llvm-${LLVM_VERSION} ]]; then
17
+ rm -fr llvm-${LLVM_VERSION}
18
+ fi
19
+ if [[ ! -d llvm-${LLVM_VERSION} ]]; then
20
+ mkdir llvm-${LLVM_VERSION}
21
+ LLVM_URL=" http://llvm.org/releases/${LLVM_VERSION} /clang+llvm-${LLVM_VERSION} -x86_64-linux-gnu-ubuntu-14.04.tar.xz"
22
+ wget -O - ${LLVM_URL} | tar -Jxvf - --strip 1 -C llvm-${LLVM_VERSION}
23
+ fi
24
+ llvm-${LLVM_VERSION} /bin/llvm-config --version;
25
+ export LLVM_CONFIG=" llvm-${LLVM_VERSION} /bin/llvm-config" ;
26
+ fi
18
27
19
28
# What versions are we ACTUALLY running?
20
29
if [ -x $HOME /bin/g++ ]; then
21
30
$HOME /bin/g++ -v
22
31
fi
23
- if [ -x $HOME /bin/clang ]; then
24
- $HOME /bin/clang -v
25
- fi
32
+
26
33
# Avoid `spurious errors` caused by ~/.npm permission issues
27
34
# Does it already exist? Who owns? What permissions?
28
35
ls -lah ~ /.npm || mkdir ~ /.npm
Original file line number Diff line number Diff line change 7
7
# When testing you can force a boost build by clearing travis caches:
8
8
# https://travis-ci.org/ripple/rippled/caches
9
9
set -e
10
+
10
11
if [ ! -d " $BOOST_ROOT /lib" ]
11
12
then
12
13
wget $BOOST_URL -O /tmp/boost.tar.gz
15
16
tar xzf /tmp/boost.tar.gz
16
17
cd $BOOST_ROOT && \
17
18
./bootstrap.sh --prefix=$BOOST_ROOT && \
18
- ./b2 -d1 define=_GLIBCXX_USE_CXX11_ABI=0 && ./b2 -d0 define=_GLIBCXX_USE_CXX11_ABI=0 install
19
+ ./b2 -d1 define=_GLIBCXX_USE_CXX11_ABI=0 -j${NUM_PROCESSORS:- 2} && \
20
+ ./b2 -d0 define=_GLIBCXX_USE_CXX11_ABI=0 install
19
21
else
20
22
echo " Using cached boost at $BOOST_ROOT "
21
23
fi
You can’t perform that action at this time.
0 commit comments