-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
72 lines (61 loc) · 1.51 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: cpp
sudo: required
services:
- docker
env:
global:
- CXX_FLAGS="-Wall -pedantic -Werror -Wno-variadic-macros -Wno-long-long -Wno-shadow"
- RUN_TESTS=true
- COVERAGE=true
- LD_LIBRARY_PATH=/usr/local/lib
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- cmake
- gcc-7
- clang-6.0
- valgrind
- g++-7
- libstdc++-7-dev
- libssh2-1-dev
- libssh-dev
matrix:
include:
- os: linux
compiler: clang
dist: trusty
env: T=debug
- os: linux
compiler: gcc
dist: trusty
env: T=debug
branches:
only:
- master
- develop
notifications:
email: false
before_install:
- docker-compose up -d
- export CMAKE_OPTIONS=${CMAKE_OPTIONS}" "${ENV_CMAKE_OPTIONS}
- export CXX_FLAGS=${CXX_FLAGS}" "${ENV_CXX_FLAGS}
- echo $LANG
- echo $LC_ALL
- mkdir -p build
- cd build
- mkdir -p docs
- cmake --version
- cmake ${CMAKE_OPTIONS} -DCMAKE_CXX_FLAGS=${CXX_FLAGS} -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON -DCOVERAGE=1 -DENABLE_MANUAL=OFF -DBUILD_TESTING=OFF ..
install:
- pip2 install --upgrade --user git+git://github.com/eddyxu/cpp-coveralls.git
script:
- make
- make test
- cd test
- ./runAllTests
#- valgrind --show-leak-kinds=all --leak-check=full --show-reachable=yes --error-limit=no --gen-suppressions=all --suppressions=../minimal.supp test/runAllTests
after_success:
- coveralls --build-root build --gcov-options '\-lp' -e build/xquery/curlpipe/src -e build/xquery/curlpipe/lib -e build/xquery/curlpipe/test