forked from basiliscos/cpp-bredis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (33 loc) · 948 Bytes
/
.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
language: cpp
dist: trusty
sudo: false
compiler:
- clang
- gcc
os:
- linux
before_script:
- wget -q -O - http://sourceforge.net/projects/boost/files/boost/1.64.0/boost_1_64_0.tar.gz | tar -xz
- cd boost_1_64_0 && ./bootstrap.sh --with-libraries=coroutine,context,chrono,system,thread,regex,filesystem
- ./b2 --ignore-site-config && cd ..
- mkdir build
- cd build
- cmake -DBOOST_ROOT=`pwd`/../boost_1_64_0 ..
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- clang-3.8
- lcov
script:
- $CXX --version
- make
- make test
- if [ "$CXX" == "g++-5" ]; then whereis gcov-5; fi
- if [ "$CXX" == "g++-5" ]; then make coverage VERBOSE=1; bash <(curl -s https://codecov.io/bash) -X gcov; fi
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5"; export CC="gcc-5"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++"; fi