forked from libcpr/cpr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
127 lines (107 loc) · 2.83 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
language: cpp
sudo: false
compiler: clang
# gcc 4.9 default
addons: &addons
apt:
packages: &packages
- g++-4.9
- clang-format-3.7
- python-pip
sources: &sources
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.5
- llvm-toolchain-precise-3.6
- llvm-toolchain-precise-3.7
- llvm-toolchain-precise
env:
global:
- BUILD_CPR_TESTS=ON
- GTEST_SHUFFLE=1
- INSECURE_CURL=ON
- USE_SYSTEM_CURL=ON
matrix:
- COMPILER=g++-4.9 CCOMPILER=gcc-4.9 GENERATE_COVERAGE=ON FORMAT_CHECK=ON
matrix:
include:
# gcc 4.6
- env: COMPILER=g++-4.6 CCOMPILER=gcc-4.6
addons:
apt:
packages: g++-4.6
sources: *sources
# gcc 4.7
- env: COMPILER=g++-4.7 CCOMPILER=gcc-4.7
addons:
apt:
packages: g++-4.7
sources: *sources
# gcc 4.8
- env: COMPILER=g++-4.8 CCOMPILER=gcc-4.8
addons:
apt:
packages: g++-4.8
sources: *sources
# gcc 5
- env: COMPILER=g++-5 CCOMPILER=gcc-5
addons:
apt:
packages: g++-5
sources: *sources
# Clang 3.4
- env: COMPILER=clang++ CCOMPILER=clang LINUX_CLANG=1
addons:
apt:
packages: clang-3.4
sources: *sources
# Clang 3.5
- env: COMPILER=clang++-3.5 CCOMPILER=clang-3.5
addons:
apt:
packages: clang-3.5
sources: *sources
# Clang 3.6
- env: COMPILER=clang++-3.6 CCOMPILER=clang-3.6
addons:
apt:
packages: clang-3.6
sources: *sources
# Clang 3.7
- env: COMPILER=clang++-3.7 CCOMPILER=clang-3.7
addons:
apt:
packages: clang-3.7
sources: *sources
# Clang 3.8
- env: COMPILER=clang++-3.8 CCOMPILER=clang-3.8
addons:
apt:
packages: clang-3.8
sources: *sources
# Xcode 6.4
- os: osx
env: COMPILER=clang++ CCOMPILER=clang
osx_image: xcode6.4
# Xcode 7
- os: osx
env: COMPILER=clang++ CCOMPILER=clang BREW_CMAKE=ON
osx_image: xcode7
allow_failures:
- env: COMPILER=g++-4.6 CCOMPILER=gcc-4.6
- env: COMPILER=clang++ CCOMPILER=clang LINUX_CLANG=1
install:
- if [ "$GENERATE_COVERAGE" == "ON" ]; then pip install --user git+git://github.com/eddyxu/cpp-coveralls.git; fi
before_script:
- export CXX=$COMPILER CC=$CCOMPILER
- if [ "$BREW_CMAKE" == "ON" ]; then brew update && brew install cmake; fi
- cmake --version
- mkdir build
- cd build
- cmake -LAH ..
script:
- make VERBOSE=1
- ctest -V
after_success:
- if [ "$GENERATE_COVERAGE" == "ON" ]; then coveralls -i 'cpr' -i 'include' -e '../include/cpr.h' --root '../' --verbose --gcov-options '\-lp' --gcov 'gcov-4.9'; fi
after_script:
- if [ "$FORMAT_CHECK" == "ON" ]; then cd .. && ./format-check.sh; fi