Skip to content

Commit 42d190f

Browse files
author
Michael Fero
committed
Adding Boost v1.59.0 due to boost-latest PPA not being updated
1 parent 18322ac commit 42d190f

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

.travis.yml

+21-12
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ compiler:
55
- gcc
66
addons:
77
apt:
8-
sources:
9-
- boost-latest
108
packages:
11-
- libboost1.55-all-dev
129
- libssl-dev
1310
- libssh2-1-dev
1411
cache:
1512
directories:
1613
- ${HOME}/dependencies
1714
env:
15+
global:
16+
- BOOST_VERSION=1.59.0
17+
- BOOST_FILE_VERSION=1_59_0
1818
matrix:
1919
- LIBUV_VERSION=0.10.x EXACT_LIBUV_VERSION=0.10.36
2020
- LIBUV_VERSION=1.x EXACT_LIBUV_VERSION=1.7.5
@@ -30,27 +30,36 @@ install:
3030
cp -r include ${HOME}/dependencies/libuv-${LIBUV_VERSION};
3131
cd ${HOME}/dependencies/libuv-${LIBUV_VERSION}/lib;
3232
ln -s libuv.so libuv.so.0.10;
33+
cd - 2&> /dev/null;
3334
fi;
3435
if [ "${LIBUV_VERSION}" == "1.x" ]; then
3536
sh autogen.sh;
3637
./configure --prefix=${HOME}/dependencies/libuv-${LIBUV_VERSION};
3738
make -j2 install;
3839
fi;
40+
cd - 2&> /dev/null
3941
else echo "Using Cached libuv v${LIBUV_VERSION}. Dependency does not need to be re-compiled";
4042
fi
43+
- if [ ! -d "${HOME}/dependencies/boost_${BOOST_FILE_VERSION}" ]; then
44+
wget -q http://sourceforge.net/projects/boost/files/boost/${BOOST_VERSION}/boost_${BOOST_FILE_VERSION}.tar.gz/download -O boost_${BOOST_FILE_VERSION}.tar.gz;
45+
tar xzf boost_${BOOST_FILE_VERSION}.tar.gz;
46+
cd boost_${BOOST_FILE_VERSION};
47+
./bootstrap.sh --with-libraries=atomic,chrono,date_time,log,program_options,random,system,thread,test --prefix=${HOME}/dependencies/boost_${BOOST_FILE_VERSION};
48+
./b2 -j2 install;
49+
cd - 2&> /dev/null;
50+
else echo "Using Cached Boost v${BOOST_VERSION}. Dependency does not need to be re-compiled";
51+
fi
4152
- cd ${TRAVIS_BUILD_DIR}
4253
before_script:
4354
- EXTRA_CXX_FLAGS=
44-
- BUILD_EXAMPLES=ON
45-
- BUILD_TESTS=ON
55+
- EXTRA_C_FLAGS=
56+
- USE_BOOST_ATOMIC=OFF
4657
- if [ "$CXX" == "clang++" ]; then
47-
EXTRA_CXX_FLAGS="-Wno-unknown-warning-option";
48-
BUILD_EXAMPLES=OFF;
49-
BUILD_TESTS=OFF;
58+
EXTRA_CXX_FLAGS="-Wno-unknown-warning-option -Wno-gnu-folding-constant -Wno-sign-compare";
59+
EXTRA_C_FLAGS="-Wno-unknown-warning-option";
60+
USE_BOOST_ATOMIC=ON;
5061
fi
51-
- CXXFLAGS="${EXTRA_CXX_FLAGS}" cmake -DLIBUV_ROOT_DIR=${HOME}/dependencies/libuv-${LIBUV_VERSION}/ -DCASS_BUILD_STATIC=ON -DCASS_BUILD_EXAMPLES=${BUILD_EXAMPLES} -DCASS_BUILD_TESTS=${BUILD_TESTS} .
62+
- CFLAGS="${EXTRA_C_FLAGS}" CXXFLAGS="${EXTRA_CXX_FLAGS}" cmake -DBOOST_ROOT_DIR=${HOME}/dependencies/boost_${BOOST_FILE_VERSION} -DLIBUV_ROOT_DIR=${HOME}/dependencies/libuv-${LIBUV_VERSION}/ -DCASS_BUILD_STATIC=ON -DCASS_BUILD_EXAMPLES=ON -DCASS_BUILD_TESTS=ON -DCASS_USE_BOOST_ATOMIC=${USE_BOOST_ATOMIC} .
5263
script:
5364
- make -j2
54-
- if [ "$CXX" != "clang++" ]; then
55-
test/unit_tests/cassandra_unit_tests;
56-
fi
65+
- test/unit_tests/cassandra_unit_tests;

0 commit comments

Comments
 (0)