| •1 |
language: cpp |
| 2 |
|
| 3 |
group: edge |
| 4 |
|
| 5 |
before_script: |
| 6 |
- export -f travis_fold |
| 7 |
|
| 8 |
script: |
| 9 |
- "bash -ex .travis-ci.sh" |
| 10 |
|
| 11 |
addons: |
| 12 |
apt: |
| 13 |
packages: &base_build |
| 14 |
|
| 15 |
|
| 16 |
- ccache |
| 17 |
- libcppunit-dev |
| 18 |
- bison |
| 19 |
- flex |
| 20 |
- uuid-dev |
| 21 |
- libprotobuf-dev |
| 22 |
- protobuf-compiler |
| 23 |
- libprotoc-dev |
| 24 |
packages: &core_build |
| 25 |
|
| 26 |
- *base_build |
| 27 |
- libftdi-dev |
| 28 |
- libftdi1 |
| 29 |
- libusb-1.0-0-dev |
| 30 |
- liblo-dev |
| 31 |
- libavahi-glib1 |
| 32 |
- libncurses5-dev |
| 33 |
- libmicrohttpd-dev |
| 34 |
packages: &core_build_clang_recent |
| 35 |
- *core_build |
| 36 |
- clang-10 |
| 37 |
packages: &core_build_gpp_latest |
| 38 |
- *core_build |
| 39 |
- g++-10 |
| 40 |
packages: &core_build_clang_latest |
| 41 |
- *core_build |
| 42 |
- clang-11 |
| 43 |
packages: &bionic_build_extras |
| 44 |
|
| 45 |
- libtool |
| 46 |
- pkg-config |
| 47 |
packages: &bionic_build_extras_python2 |
| 48 |
- *bionic_build_extras |
| 49 |
- python-protobuf |
| 50 |
- python-numpy |
| 51 |
- python-pip |
| 52 |
packages: &bionic_build_extras_python3 |
| 53 |
- *bionic_build_extras |
| 54 |
|
| 55 |
|
| 56 |
- python3-dev |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
homebrew: |
| 61 |
packages: &mac_core_build |
| 62 |
- ccache |
| 63 |
|
| 64 |
- bison |
| 65 |
- flex |
| 66 |
|
| 67 |
|
| 68 |
- liblo |
| 69 |
- libmicrohttpd |
| 70 |
- ossp-uuid |
| 71 |
|
| 72 |
|
| 73 |
- libusb |
| 74 |
packages: &mac_cppunit_113 |
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
jobs: |
| 79 |
fast_finish: true |
| 80 |
include: |
| 81 |
- os: linux |
| 82 |
dist: bionic |
| 83 |
arch: arm64 |
| 84 |
env: TASK='doxygen' |
| 85 |
addons: |
| 86 |
apt: |
| 87 |
packages: |
| 88 |
- *core_build_gpp_latest |
| 89 |
- *bionic_build_extras_python2 |
| 90 |
- doxygen |
| 91 |
- graphviz |
| 92 |
sources: |
| 93 |
- ubuntu-toolchain-r-test |
| 94 |
- os: linux |
| 95 |
dist: bionic |
| 96 |
arch: arm64 |
| 97 |
env: TASK='lint' |
| 98 |
addons: |
| 99 |
apt: |
| 100 |
packages: |
| 101 |
- *core_build |
| 102 |
- *bionic_build_extras_python2 |
| 103 |
- os: linux |
| 104 |
dist: bionic |
| 105 |
arch: arm64 |
| 106 |
env: |
| 107 |
- TASK='check-licences' |
| 108 |
- PYTHON='python3' |
| 109 |
addons: |
| 110 |
apt: |
| 111 |
packages: |
| 112 |
- *core_build |
| 113 |
- *bionic_build_extras_python3 |
| 114 |
- os: linux |
| 115 |
dist: bionic |
| 116 |
arch: arm64 |
| 117 |
env: |
| 118 |
- TASK='codespell' |
| 119 |
- PYTHON='python3' |
| 120 |
addons: |
| 121 |
apt: |
| 122 |
packages: |
| 123 |
- *core_build |
| 124 |
- *bionic_build_extras_python3 |
| 125 |
- moreutils |
| 126 |
- os: linux |
| 127 |
dist: bionic |
| 128 |
arch: arm64 |
| 129 |
env: TASK='jshint' |
| 130 |
addons: |
| 131 |
apt: |
| 132 |
packages: |
| 133 |
- os: linux |
| 134 |
dist: bionic |
| 135 |
arch: arm64 |
| 136 |
env: TASK='flake8' |
| 137 |
python: '2.7' |
| 138 |
addons: |
| 139 |
apt: |
| 140 |
packages: |
| 141 |
- *base_build |
| 142 |
- *bionic_build_extras_python2 |
| 143 |
- os: linux |
| 144 |
dist: bionic |
| 145 |
arch: arm64 |
| 146 |
env: |
| 147 |
- TASK='flake8' |
| 148 |
- PYTHON='python3' |
| 149 |
addons: |
| 150 |
apt: |
| 151 |
packages: |
| 152 |
- *base_build |
| 153 |
- *bionic_build_extras_python3 |
| 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 |
- os: linux |
| 185 |
dist: bionic |
| 186 |
arch: arm64 |
| 187 |
compiler: clang |
| 188 |
env: |
| 189 |
- TASK='compile' |
| 190 |
- PYTHON='python3' |
| 191 |
addons: |
| 192 |
apt: |
| 193 |
packages: |
| 194 |
- *core_build_clang_recent |
| 195 |
- *bionic_build_extras_python3 |
| 196 |
- os: linux |
| 197 |
dist: bionic |
| 198 |
arch: arm64 |
| 199 |
compiler: gcc |
| 200 |
env: TASK='compile' |
| 201 |
python: '2.7' |
| 202 |
addons: |
| 203 |
apt: |
| 204 |
packages: |
| 205 |
- *core_build_gpp_latest |
| 206 |
- *bionic_build_extras_python2 |
| 207 |
sources: |
| 208 |
- ubuntu-toolchain-r-test |
| 209 |
- os: linux |
| 210 |
dist: bionic |
| 211 |
arch: s390x |
| 212 |
compiler: clang |
| 213 |
env: TASK='compile' |
| 214 |
python: '2.7' |
| 215 |
addons: |
| 216 |
apt: |
| 217 |
packages: |
| 218 |
- *core_build_clang_recent |
| 219 |
- *bionic_build_extras_python2 |
| 220 |
- os: linux |
| 221 |
dist: bionic |
| 222 |
arch: s390x |
| 223 |
compiler: gcc |
| 224 |
env: TASK='compile' |
| 225 |
python: '2.7' |
| 226 |
addons: |
| 227 |
apt: |
| 228 |
packages: |
| 229 |
- *core_build_gpp_latest |
| 230 |
- *bionic_build_extras_python2 |
| 231 |
sources: |
| 232 |
- ubuntu-toolchain-r-test |
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
|
| 268 |
|
| 269 |
|
| 270 |
|
| 271 |
|
| 272 |
|
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
|
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
|
| 288 |
|
| 289 |
|
| 290 |
|
| 291 |
|
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
- os: linux |
| 330 |
dist: bionic |
| 331 |
arch: arm64 |
| 332 |
compiler: gcc |
| 333 |
env: TASK='coverage' |
| 334 |
addons: |
| 335 |
apt: |
| 336 |
packages: |
| 337 |
- *core_build_gpp_latest |
| 338 |
sources: |
| 339 |
- sourceline: "ppa:ubuntu-toolchain-r/test" |
| 340 |
- os: linux |
| 341 |
dist: xenial |
| 342 |
arch: arm64 |
| 343 |
compiler: gcc |
| 344 |
env: TASK='coverity' |
| 345 |
addons: |
| 346 |
apt: |
| 347 |
packages: |
| 348 |
|
| 349 |
- *core_build |
| 350 |
- g++-4.9 |
| 351 |
sources: |
| 352 |
- sourceline: "ppa:ubuntu-toolchain-r/test" |
| 353 |
- os: linux |
| 354 |
dist: bionic |
| 355 |
arch: arm64 |
| 356 |
env: TASK='spellintian' |
| 357 |
addons: |
| 358 |
apt: |
| 359 |
packages: |
| 360 |
- *core_build |
| 361 |
- *bionic_build_extras_python2 |
| 362 |
- lintian |
| 363 |
- moreutils |
| 364 |
- os: linux |
| 365 |
dist: bionic |
| 366 |
arch: arm64 |
| 367 |
env: TASK='spellintian-duplicates' |
| 368 |
addons: |
| 369 |
apt: |
| 370 |
packages: |
| 371 |
- *core_build |
| 372 |
- *bionic_build_extras_python2 |
| 373 |
- lintian |
| 374 |
- moreutils |
| 375 |
allow_failures: |
| 376 |
|
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
|
| 387 |
|
| 388 |
|
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
|
| 393 |
|
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
|
| 399 |
|
| 400 |
|
| 401 |
|
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
|
| 406 |
|
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
|
| 412 |
|
| 413 |
|
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
|
| 418 |
- os: osx |
| 419 |
osx_image: xcode9.4 |
| 420 |
compiler: clang |
| 421 |
env: |
| 422 |
- TASK='compile' |
| 423 |
- CPPUNIT='1.14' |
| 424 |
- PROTOBUF='latest' |
| 425 |
- LIBFTDI='1' |
| 426 |
- os: osx |
| 427 |
osx_image: xcode9.4 |
| 428 |
compiler: gcc |
| 429 |
env: |
| 430 |
- TASK='compile' |
| 431 |
- CPPUNIT='1.14' |
| 432 |
- PROTOBUF='latest' |
| 433 |
- LIBFTDI='1' |
| 434 |
- os: linux |
| 435 |
dist: bionic |
| 436 |
arch: arm64 |
| 437 |
compiler: gcc |
| 438 |
env: TASK='coverage' |
| 439 |
- os: linux |
| 440 |
dist: xenial |
| 441 |
arch: arm64 |
| 442 |
compiler: gcc |
| 443 |
env: TASK='coverity' |
| 444 |
- os: linux |
| 445 |
dist: bionic |
| 446 |
arch: arm64 |
| 447 |
env: TASK='spellintian' |
| 448 |
- os: linux |
| 449 |
dist: bionic |
| 450 |
arch: arm64 |
| 451 |
env: TASK='spellintian-duplicates' |
| 452 |
|
| 453 |
env: |
| 454 |
global: |
| 455 |
|
| 456 |
- TERM=dumb |
| 457 |
|
| 458 |
- MAKEFLAGS="-j 2" |
| 459 |
|
| 460 |
- COVERITY_SCAN_BUILD_COMMAND_PREPEND="cov-configure --comptype gcc --compiler gcc-4.9 --template && autoreconf -i && ./configure --enable-ja-rule --enable-e133" |
| 461 |
|
| 462 |
|
| 463 |
- COVERITY_SCAN_BUILD_COMMAND="make" |
| 464 |
|
| 465 |
- COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG" |
| 466 |
|
| 467 |
- COVERITY_SCAN_NOTIFICATION_EMAIL="[email protected]" |
| 468 |
|
| 469 |
|
| 470 |
- COVERITY_SCAN_BRANCH_PATTERN=".*" |
| 471 |
|
| 472 |
- secure: "U+NmPtScHZ1NLmkDrzpqApHmJvELV44cXgjQsxA8N8xIATckbs+DrmWSNeECENyvuOPz+nPzglSgBvJtejf97jYJIIwAExq5TJMUAIPFS6KU3mohODW2PZSoVoUyJPzFIlhzcELQgONI+ILLm29lNdQNb7GFUVtO6+jS10AFtWY=" |
| 473 |
|
| 474 |
|
| 475 |
cache: |
| 476 |
apt: true |
| 477 |
ccache: true |
| 478 |
npm: true |
| 479 |
pip: true |
| 480 |
directories: |
| 481 |
- $HOME/Library/Caches/Homebrew |
| 482 |
|
| 483 |
before_cache: |
| 484 |
- rm -f $HOME/.cache/pip/log/debug.log |
| 485 |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cleanup; fi |
| 486 |
- ccache -s |
| 487 |
|
| 488 |
before_install: |
| 489 |
- if [ "$PYTHON" == "python3" -a "$TRAVIS_CPU_ARCH" != "arm64" ]; then pyenv global 3.8.1; fi |
| 490 |
|
| 491 |
- if [ "$PYTHON" != "python3" ]; then sudo rm /usr/local/bin/pip && sudo ln -s /usr/local/bin/pip2 /usr/local/bin/pip; fi |
| 492 |
|
| 493 |
- if [ "$TASK" = "jshint" ]; then nvm install 16 && nvm use 16; fi |
| 494 |
|
| 495 |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [ ! -d /usr/local/sbin ]; then sudo mkdir -p /usr/local/sbin && sudo chown -R $(whoami) /usr/local/sbin; fi; fi |
| 496 |
|
| 497 |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [ ! -d /usr/local/Cellar/gnupg2/2.2.5 ]; then sudo mkdir -p /usr/local/Cellar/gnupg2/2.2.5 && sudo chown -R $(whoami) /usr/local/Cellar/gnupg2/2.2.5; fi; fi |
| 498 |
|
| 499 |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew reinstall numpy || brew link --overwrite numpy; fi |
| 500 |
|
| 501 |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew reinstall libtool; fi |
| 502 |
|
| 503 |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew uninstall --ignore-dependencies gnupg; fi |
| 504 |
|
| 505 |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python || true; fi |
| 506 |
|
| 507 |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew uninstall --ignore-dependencies --force cgal liblwgeom libspatialite mercurial postgis postgres sfcgal; fi |
| 508 |
|
| 509 |
|
| 510 |
|
| 511 |
|
| 512 |
|
| 513 |
|
| 514 |
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$PROTOBUF" != "latest" ]; then brew install [email protected]; fi |
| 515 |
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$PROTOBUF" != "latest" ]; then brew link -f [email protected]; export PKG_CONFIG_PATH=/usr/local/opt/[email protected]/lib/pkgconfig; brew install --build-from-source --ignore-dependencies --env=std protobuf-c; fi |
| 516 |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir -p ${HOME}/Library/Python/2.7/lib/python/site-packages; echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> ${HOME}/Library/Python/2.7/lib/python/site-packages/homebrew.pth; fi |
| 517 |
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$CPPUNIT" != "1.14" ]; then brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/e6e43cf6a3%5E/Formula/cppunit.rb; fi |
| 518 |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PATH=/usr/local/opt/ccache/libexec:$PATH; fi |
| 519 |
|
| 520 |
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip install --upgrade --no-deps --force-reinstall --user numpy; fi |
| 521 |
|
| 522 |
- if [ "$TRAVIS_OS_NAME" == "linux" -a \( "$TASK" = "compile" -o "$TASK" = "coverage" -o "$TASK" = "doxygen" \) -a "$CXX" = "g++" ]; then export CXX="ccache g++-10" CC="ccache gcc-10"; fi |
| 523 |
- if [ "$TASK" = "coverity" -a "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi |
| 524 |
|
| 525 |
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CXX" = "clang++" -a "$TRAVIS_CPU_ARCH" != "arm64" -a "$TRAVIS_CPU_ARCH" != "s390x" ]; then export CXX="clang++-11" CC="clang-11"; fi |
| 526 |
|
| 527 |
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CXX" = "clang++" -a \( "$TRAVIS_CPU_ARCH" == "arm64" -o "$TRAVIS_CPU_ARCH" == "s390x" \) ]; then export CXX="clang++-10" CC="clang-10"; fi |
| 528 |
|
| 529 |
- $CXX --version |
| 530 |
|
| 531 |
install: |
| 532 |
|
| 533 |
- if [ "$PROTOBUF" == "latest" -a \( "$TRAVIS_DIST" != "bionic" -o "$PYTHON" == "python3" \) ]; then pip install --user protobuf; fi |
| 534 |
- if [ "$PROTOBUF" != "latest" -a \( "$TRAVIS_DIST" != "bionic" -o "$PYTHON" == "python3" \) ]; then pip install --user protobuf==3.1.0; fi |
| 535 |
|
| 536 |
|
| 537 |
|
| 538 |
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$TRAVIS_DIST" == "bionic" -a "$TRAVIS_CPU_ARCH" != "arm64" ]; then pip install --user wheel; fi |
| 539 |
|
| 540 |
- if [ "$TRAVIS_DIST" != "bionic" -o "$PYTHON" == "python3" ]; then pip install --user numpy; fi |
| 541 |
- if [ "$TASK" = "coverage" ]; then pip install --user cpp-coveralls; fi |
| 542 |
- if [ "$TASK" = "flake8" ]; then pip install --user flake8; fi |
| 543 |
- if [ "$TASK" = "codespell" ]; then pip3 install --user codespell==2.2.1; fi |
| 544 |
- if [ "$TASK" = "jshint" ]; then npm --verbose install -g grunt-cli; fi |
| 545 |
- if [ "$TASK" = "jshint" ]; then grunt --version --verbose; fi |
| 546 |
|
| 547 |
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$CPPUNIT" != "1.14" ]; then brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/e6e43cf6a3%5E/Formula/cppunit.rb; fi |
| 548 |
|
| 549 |
after_failure: |
| 550 |
- if [ -f ${TRAVIS_BUILD_DIR}/config.log ]; then cat ${TRAVIS_BUILD_DIR}/config.log; fi |
| 551 |
- if [ -f ${TRAVIS_BUILD_DIR}/ola-*/_build/config.log ]; then cat ${TRAVIS_BUILD_DIR}/ola-*/_build/config.log; fi |
| 552 |
- if [ -f ${TRAVIS_BUILD_DIR}/ola-*/_build/sub/config.log ]; then cat ${TRAVIS_BUILD_DIR}/ola-*/_build/sub/config.log; fi |
| 553 |
|
| 554 |
after_success: |
| 555 |
- if [ "$TASK" = "coverage" ]; then coveralls --gcov /usr/bin/gcov-10 -b . -E '.*Test\.cpp$' -E '.*\.pb\.cc$' -E '.*\.pb\.cpp$' -E '.*\.pb\.h$' -E '.*\.yy\.cpp$' -E '.*\.tab\.cpp$' -E '.*\.tab\.h$' -E '.*/doxygen/examples.*$' --gcov-options '\-lp' > /dev/null; fi |
| 556 |
|
| 557 |
after_script: |
| 558 |
- if [ "$TASK" = "coverity" ]; then tail -n 10000 ${TRAVIS_BUILD_DIR}/cov-int/build-log.txt; cat ${TRAVIS_BUILD_DIR}/cov-int/scm_log.txt; fi |
| 559 |
|
| 560 |
notifications: |
| 561 |
irc: |
| 562 |
channels: |
| 563 |
- "chat.freenode.net#openlighting" |
| 564 |
on_success: change |
| 565 |
on_failure: change |