@@ -331,64 +331,88 @@ matrix:
331
331
.if (defined (project.travis_shadow_clang) & !(project.travis_shadow_clang ?= 0)) | (defined (project.travis_shadow_gcc) & !(project.travis_shadow_gcc ?= 0))
332
332
# Shadow-compilation setups below inspired by https://docs.travis-ci.com/user/languages/cpp/
333
333
.endif
334
- .if defined (project.travis_shadow_clang) & !(project.travis_shadow_clang ?= 0)
334
+ . if defined (project.travis_shadow_clang) & !(project.travis_shadow_clang ?= 0)
335
335
- env: BUILD_TYPE=default-Werror MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
336
336
os: linux
337
- .if (project.travis_dist ?<> "")
337
+ . if (project.travis_dist ?<> "")
338
338
dist: $(project.travis_dist)
339
- .endif
339
+ . else
340
+ dist: xenial
341
+ . endif
340
342
addons:
341
343
apt:
342
344
sources:
343
- - llvm-toolchain-trusty-5.0
344
- .if (pkg_src_zeromq_dist ?<> "")
345
+ . if (project.travis_dist ?<> "")
346
+ - llvm-toolchain-$(project.travis_dist)-5.0
347
+ . else
348
+ - llvm-toolchain-xenial-5.0
349
+ . endif
350
+ . if (pkg_src_zeromq_dist ?<> "")
345
351
- *$(pkg_src_zeromq_dist)
346
- .endif
352
+ . endif
347
353
packages:
348
354
- *pkg_deps_common
349
355
- clang-5.0
350
356
- env: BUILD_TYPE=default-Werror MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"
351
357
os: linux
352
- .if (project.travis_dist ?<> "")
358
+ . if (project.travis_dist ?<> "")
353
359
dist: $(project.travis_dist)
354
- .endif
360
+ . else
361
+ dist: xenial
362
+ . endif
355
363
addons:
356
364
apt:
357
365
sources:
358
- - llvm-toolchain-trusty-4.0
359
- .if (pkg_src_zeromq_dist ?<> "")
366
+ . if (project.travis_dist ?<> "")
367
+ - llvm-toolchain-$(project.travis_dist)-4.0
368
+ . else
369
+ - llvm-toolchain-xenial-4.0
370
+ . endif
371
+ . if (pkg_src_zeromq_dist ?<> "")
360
372
- *$(pkg_src_zeromq_dist)
361
- .endif
373
+ . endif
362
374
packages:
363
375
- *pkg_deps_common
364
376
- clang-4.0
365
377
- env: BUILD_TYPE=default-Werror MATRIX_EVAL="CC=clang-3.9 && CXX=clang++-3.9"
366
378
os: linux
367
- .if (project.travis_dist ?<> "")
379
+ . if (project.travis_dist ?<> "")
368
380
dist: $(project.travis_dist)
369
- .endif
381
+ . else
382
+ dist: xenial
383
+ . endif
370
384
addons:
371
385
apt:
372
386
sources:
373
- - llvm-toolchain-trusty-3.9
374
- .if (pkg_src_zeromq_dist ?<> "")
387
+ . if (project.travis_dist ?<> "")
388
+ - llvm-toolchain-$(project.travis_dist)-3.9
389
+ . else
390
+ - llvm-toolchain-xenial-3.9
391
+ . endif
392
+ . if (pkg_src_zeromq_dist ?<> "")
375
393
- *$(pkg_src_zeromq_dist)
376
- .endif
394
+ . endif
377
395
packages:
378
396
- *pkg_deps_common
379
397
- clang-3.9
380
398
- env: BUILD_TYPE=default-Werror MATRIX_EVAL="CC=clang-3.8 && CXX=clang++-3.8"
381
399
os: linux
382
- .if (project.travis_dist ?<> "")
400
+ . if (project.travis_dist ?<> "")
383
401
dist: $(project.travis_dist)
384
- .endif
402
+ . else
403
+ dist: xenial
404
+ . endif
385
405
addons:
386
406
apt:
387
407
sources:
388
- - llvm-toolchain-trusty-3.8
389
- .if (pkg_src_zeromq_dist ?<> "")
408
+ . if (project.travis_dist ?<> "")
409
+ - llvm-toolchain-$(project.travis_dist)-3.8
410
+ . else
411
+ - llvm-toolchain-xenial-3.8
412
+ . endif
413
+ . if (pkg_src_zeromq_dist ?<> "")
390
414
- *$(pkg_src_zeromq_dist)
391
- .endif
415
+ . endif
392
416
packages:
393
417
- *pkg_deps_common
394
418
- clang-3.8
@@ -412,50 +436,52 @@ matrix:
412
436
- g++-4.9
413
437
- gcc-4.9
414
438
. endif
439
+ . if !defined(project.travis_dist) | (project.travis_dist ?<> "xenial")
415
440
- env: BUILD_TYPE=default-Werror MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
416
441
os: linux
417
- .if (project.travis_dist ?<> "")
442
+ . if (project.travis_dist ?<> "")
418
443
dist: $(project.travis_dist)
419
- .endif
444
+ . endif
420
445
addons:
421
446
apt:
422
447
sources:
423
448
- ubuntu-toolchain-r-test
424
- .if (pkg_src_zeromq_dist ?<> "")
449
+ . if (pkg_src_zeromq_dist ?<> "")
425
450
- *$(pkg_src_zeromq_dist)
426
- .endif
451
+ . endif
427
452
packages:
428
453
- *pkg_deps_common
429
454
- g++-5
430
455
- gcc-5
456
+ . endif
431
457
- env: BUILD_TYPE=default-Werror MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
432
458
os: linux
433
- .if (project.travis_dist ?<> "")
459
+ . if (project.travis_dist ?<> "")
434
460
dist: $(project.travis_dist)
435
- .endif
461
+ . endif
436
462
addons:
437
463
apt:
438
464
sources:
439
465
- ubuntu-toolchain-r-test
440
- .if (pkg_src_zeromq_dist ?<> "")
466
+ . if (pkg_src_zeromq_dist ?<> "")
441
467
- *$(pkg_src_zeromq_dist)
442
- .endif
468
+ . endif
443
469
packages:
444
470
- *pkg_deps_common
445
471
- g++-6
446
472
- gcc-6
447
473
- env: BUILD_TYPE=default-Werror MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
448
474
os: linux
449
- .if (project.travis_dist ?<> "")
475
+ . if (project.travis_dist ?<> "")
450
476
dist: $(project.travis_dist)
451
- .endif
477
+ . endif
452
478
addons:
453
479
apt:
454
480
sources:
455
481
- ubuntu-toolchain-r-test
456
- .if (pkg_src_zeromq_dist ?<> "")
482
+ . if (pkg_src_zeromq_dist ?<> "")
457
483
- *$(pkg_src_zeromq_dist)
458
- .endif
484
+ . endif
459
485
packages:
460
486
- *pkg_deps_common
461
487
- g++-7
@@ -505,7 +531,9 @@ matrix:
505
531
. if !(use_cxx_gcc_4_9 ?= 1)
506
532
- env: BUILD_TYPE=default-Werror MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
507
533
. endif
534
+ . if !defined(project.travis_dist) | (project.travis_dist ?<> "xenial")
508
535
- env: BUILD_TYPE=default-Werror MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
536
+ . endif
509
537
- env: BUILD_TYPE=default-Werror MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
510
538
- env: BUILD_TYPE=default-Werror MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
511
539
. endif
0 commit comments