-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
191 lines (166 loc) · 5.94 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
dist: trusty
language: cpp
sudo: true
os:
- linux
- osx
compiler:
- gcc
- clang
before_install:
- eval "${MATRIX_EVAL}"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; sudo apt-get install libopencv-dev libleptonica-dev; fi
# - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "${MATRIX_EVAL}" = "CC=gcc-4.9 && CXX=g++-4.9" ]; then echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-; fi
# - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "${MATRIX_EVAL}" = "CC=gcc-4.9 && CXX=g++-4.9" ]; then pip install --user cpp-coveralls; fi
# - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "${MATRIX_EVAL}" = "CC=clang-4.0 && CXX=clang++-4.0" ]; then wget -q -O - http://files.viva64.com/etc/pubkey.txt | sudo apt-key add - ; sudo wget -O /etc/apt/sources.list.d/viva64.list http://files.viva64.com/etc/viva64.list ; sudo apt-get update ; sudo apt-get install pvs-studio ; fi
script:
- cmake .
- make
#- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "${MATRIX_EVAL}" = "CC=gcc-4.9 && CXX=g++-4.9" ]; then cppcheck --error-exitcode=1 example/ ; fi
#- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "${MATRIX_EVAL}" = "CC=clang-4.0 && CXX=clang++-4.0" ]; then cmake -DCMAKE_CXX_COMPILER=/usr/share/clang/scan-build-4.0/libexec/c++-analyzer . ; fi
#- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "${MATRIX_EVAL}" = "CC=clang-4.0 && CXX=clang++-4.0" ]; then scan-build-4.0 -analyze-headers make ; fi
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
#- secure: "KKyL4TuyDAJAr6WU6Z00odxzhW+glgehhVk74Rgf9ubU2e4v2M2ypKkno3jX4hU9kxjeCXLALZPy1eg524UGCJxIhNxxvMSIel8r4ldVk/+va5Dc8ASEnGGm5482bZupH4uxJi+DpNZe0hmxMfVtxoy6fEVy6yw5HH0h0OSGGadCo8Kg7lnLIlz8JjIDmqEzuzG7iwpcAJStEktaGYagUnQEAq5iAb1/JNtGEoPEMvSnHwk4UIndnZk8jbxff1Zerki1twBXsr5MkKM3OW0nkuhL0bbayZTniblZ62ACiT6rDdMW8F+oXAkv1SqoE0PjwsbiQwxYQtEByKC0CV0UqUq6brqxPu1arJrJpzlm6X+kJFolQauNKLO6KFL7OC1BhkGdtcDNhru7a1Ybr84jFENINh8aOtnGamHeunra3iX8JV+q33X9INHh+gIKOrDaUzvniUjM2x9uSv5kGEhjgd4+pTjVfZoNWj4xnZ2W1buuhfbuB7/sQXIgAsFsjLVS4TpRMRn2dsHPkqaWwfqL8NlEVsuHp7847GZ/0TGshiYc1St8/gX4kgvh2FZc6gtHBSwvzcwagNTucaKkjBTXajiCj57njFCBCuX36pd6+Z/Rmn8hQevF1r25OJ5xF8ECPMy6NS9pd8yliuFe6/jqDYngPN9bxAWCFh3b4E2NVqI="
#env:
# - ENABLE_MULTITHREAD=ON
# - ENABLE_MULTITHREAD=OFF
# - CXX_STANDARD_LIBRARY=libc++
# - CXX_STANDARD_LIBRARY=libstdc++
#addons:
# coverity_scan:
# project:
# name: "ZaMaZaN4iK/libcsv"
# description: "Static analyze from Travis CI"
# notification_email: [email protected]
# build_command_prepend: "cmake ."
# build_command: "make"
# branch_pattern: master
matrix:
include:
# works on Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- cppcheck
- libopencv-dev
- libleptonica-dev
env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
# works on Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- libopencv-dev
- libleptonica-dev
env:
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
# works on Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- libopencv-dev
- libleptonica-dev
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
# Clang builds part
# works on Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- clang-3.6
- libopencv-dev
- libleptonica-dev
env:
- MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6"
# works on Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages:
- clang-3.7
- libopencv-dev
- libleptonica-dev
env:
- MATRIX_EVAL="CC=clang-3.7 && CXX=clang++-3.7"
# works on Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- clang-3.8
- libopencv-dev
- libleptonica-dev
env:
- MATRIX_EVAL="CC=clang-3.8 && CXX=clang++-3.8"
# works on Trusty
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-3.9
packages:
- clang-3.9
- libopencv-dev
- libleptonica-dev
env:
- MATRIX_EVAL="CC=clang-3.9 && CXX=clang++-3.9"
# works on Trusty
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
- libopencv-dev
- libleptonica-dev
env:
- MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"
# Disabled it because it cannot be installed properly
#
# - os: linux
# addons:
# apt:
# sources:
# - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main'
# key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
# packages:
# - clang-5.0
# env:
# - MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
# MacOS builds part
# works on MacOS
#- os: osx
# env:
# - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
#- os: osx
# env:
# - MATRIX_EVAL="brew install gcc5 && CC=gcc-5 && CXX=g++-5"
#- os: osx
# env:
# - MATRIX_EVAL="brew install gcc6 && CC=gcc-6 && CXX=g++-6"