forked from rpclib/rpclib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 1.17 KB
/
.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
language: c++
os: linux
dist: trusty
sudo: required
matrix:
include:
- compiler: gcc
env: RPCLIB_CXX_STANDARD=11 BUILD_TYPE=Release COVERAGE="ON"
- compiler: gcc
env: RPCLIB_CXX_STANDARD=14 BUILD_TYPE=Release COVERAGE="OFF"
- compiler: clang
env: RPCLIB_CXX_STANDARD=11 BUILD_TYPE=Release COVERAGE="OFF"
- compiler: clang
env: RPCLIB_CXX_STANDARD=14 BUILD_TYPE=Release COVERAGE="OFF"
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
- sudo apt-get install -qq g++-5
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
- wget https://cmake.org/files/v3.9/cmake-3.9.2-Linux-x86_64.sh
- sudo sh cmake-3.9.2-Linux-x86_64.sh -- --skip-license --prefix=/usr
script:
- mkdir build ; cd build
- cmake -DRPCLIB_ENABLE_COVERAGE=$COVERAGE -DRPCLIB_BUILD_TESTS=ON -DRPCLIB_CXX_STANDARD=$RPCLIB_CXX_STANDARD -DCMAKE_INSTALL_PREFIX=../install ..
- cmake --build . --config $BUILD_TYPE
- cmake --build . --target install
after_success:
- ./tests/rpc_test
- lcov --capture --directory . --output-file coverage.info
- bash <(curl -s https://codecov.io/bash)