forked from VirgilSecurity/restless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (31 loc) · 1.21 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
37
38
39
40
41
language: cpp
compiler:
-gcc
-clang
env:
global:
- BUILD_RESTLESS_TESTS=ON
sudo: required
matrix:
include:
- compiler: gcc
env: USE_SYSTEM_CMAKE=OFF GENERATE_COVERAGE=ON COVERALLS_UPLOAD=ON
before_install:
- sudo apt-get update
- if [ "$GENERATE_COVERAGE" == "ON" ]; then sudo pip install cpp-coveralls; fi
install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update
- sudo apt-get install g++-4.8 -y --force-yes
- if [ "$CXX" == "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- if [ "$USE_SYSTEM_CMAKE" == "OFF" ]; then sudo apt-get remove cmake && wget http://www.cmake.org/files/v3.2/cmake-3.2.1.tar.gz && tar -xzf cmake-3.2.1.tar.gz && cd cmake-3.2.1 && ./bootstrap > /dev/null && make -j8 > /dev/null && sudo make install && cd .. && rm -rf cmake-3.2.1 cmake-3.2.1.tar.gz; else sudo apt-get install -y cmake; fi
- sudo apt-get install libcurl4-openssl-dev
before_script:
- cmake --version
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Debug
script:
- make VERBOSE=1
- make test
after_success:
- if [ "$GENERATE_COVERAGE" == "ON" ]; then coveralls --gcov /usr/bin/gcov-4.8 -i 'src' -i 'include' -r ../ --verbose; fi