Skip to content

Commit c9b630a

Browse files
author
Michael Fero
committed
Adding a build matrix for libuv 0.10.x and clang (driver only)
1 parent bb0d751 commit c9b630a

File tree

1 file changed

+37
-6
lines changed

1 file changed

+37
-6
lines changed

.travis.yml

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,45 @@
11
language: c++
2-
compiler: gcc
2+
compiler:
3+
- clang
4+
- gcc
5+
env:
6+
matrix:
7+
- LIBUV_VERSION=0.10.x EXACT_LIBUV_VERSION=0.10.36
8+
- LIBUV_VERSION=1.x EXACT_LIBUV_VERSION=1.6.1
39
before_install:
410
- sudo add-apt-repository ppa:boost-latest/ppa -y
511
- sudo apt-get update -qq
612
- sudo apt-get install libboost1.55-all-dev libssl-dev libssh2-1-dev -qq
7-
- wget -q http://dist.libuv.org/dist/v1.4.0/libuv-v1.4.0.tar.gz
13+
- wget -q http://dist.libuv.org/dist/v${EXACT_LIBUV_VERSION}/libuv-v${EXACT_LIBUV_VERSION}.tar.gz
814
install:
9-
- tar xzf libuv-v1.4.0.tar.gz
10-
- cd libuv-v1.4.0 && sh autogen.sh && ./configure --prefix=${PWD}/../lib/libuv && make -s install && cd -
11-
before_script: cmake -DLIBUV_ROOT_DIR=lib/libuv/ -DCASS_BUILD_TESTS=ON .
15+
- tar xzf libuv-v${EXACT_LIBUV_VERSION}.tar.gz
16+
- cd libuv-v${EXACT_LIBUV_VERSION}
17+
- if [ "${LIBUV_VERSION}" == "0.10.x" ]; then
18+
make;
19+
mkdir -p ${PWD}/../lib/libuv-${LIBUV_VERSION}/lib;
20+
cp libuv* ${PWD}/../lib/libuv-${LIBUV_VERSION}/lib;
21+
cp -r include ${PWD}/../lib/libuv-${LIBUV_VERSION};
22+
cd ${PWD}/../lib/libuv-${LIBUV_VERSION}/lib;
23+
ln -s libuv.so libuv.so.0.10;
24+
fi
25+
- if [ "${LIBUV_VERSION}" == "1.x" ]; then
26+
sh autogen.sh;
27+
./configure --prefix=${PWD}/../lib/libuv-${LIBUV_VERSION};
28+
make -s install;
29+
fi
30+
- cd ${TRAVIS_BUILD_DIR}
31+
before_script:
32+
- EXTRA_CXX_FLAGS=
33+
- BUILD_EXAMPLES=ON
34+
- BUILD_TESTS=ON
35+
- if [ "$CXX" == "clang++" ]; then
36+
EXTRA_CXX_FLAGS="-Wno-unknown-warning-option";
37+
BUILD_EXAMPLES=OFF;
38+
BUILD_TESTS=OFF;
39+
fi
40+
- CXXFLAGS="${EXTRA_CXX_FLAGS}" cmake -DLIBUV_ROOT_DIR=lib/libuv-${LIBUV_VERSION}/ -DCASS_BUILD_STATIC=ON -DCASS_BUILD_EXAMPLES=${BUILD_EXAMPLES} -DCASS_BUILD_TESTS=${BUILD_TESTS} .
1241
script:
1342
- make
14-
- test/unit_tests/cassandra_unit_tests
43+
- if [ "$CXX" != "clang++" ]; then
44+
test/unit_tests/cassandra_unit_tests;
45+
fi

0 commit comments

Comments
 (0)