@@ -5,16 +5,16 @@ compiler:
5
5
- gcc
6
6
addons :
7
7
apt :
8
- sources :
9
- - boost-latest
10
8
packages :
11
- - libboost1.55-all-dev
12
9
- libssl-dev
13
10
- libssh2-1-dev
14
11
cache :
15
12
directories :
16
13
- ${HOME}/dependencies
17
14
env :
15
+ global :
16
+ - BOOST_VERSION=1.59.0
17
+ - BOOST_FILE_VERSION=1_59_0
18
18
matrix :
19
19
- LIBUV_VERSION=0.10.x EXACT_LIBUV_VERSION=0.10.36
20
20
- LIBUV_VERSION=1.x EXACT_LIBUV_VERSION=1.7.5
@@ -30,27 +30,36 @@ install:
30
30
cp -r include ${HOME}/dependencies/libuv-${LIBUV_VERSION};
31
31
cd ${HOME}/dependencies/libuv-${LIBUV_VERSION}/lib;
32
32
ln -s libuv.so libuv.so.0.10;
33
+ cd - 2&> /dev/null;
33
34
fi;
34
35
if [ "${LIBUV_VERSION}" == "1.x" ]; then
35
36
sh autogen.sh;
36
37
./configure --prefix=${HOME}/dependencies/libuv-${LIBUV_VERSION};
37
38
make -j2 install;
38
39
fi;
40
+ cd - 2&> /dev/null
39
41
else echo "Using Cached libuv v${LIBUV_VERSION}. Dependency does not need to be re-compiled";
40
42
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
41
52
- cd ${TRAVIS_BUILD_DIR}
42
53
before_script :
43
54
- EXTRA_CXX_FLAGS=
44
- - BUILD_EXAMPLES=ON
45
- - BUILD_TESTS=ON
55
+ - EXTRA_C_FLAGS=
56
+ - USE_BOOST_ATOMIC=OFF
46
57
- 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 ;
50
61
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 } .
52
63
script :
53
64
- 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