2018-03-28 11:44:20 +02:00
|
|
|
# Travis CI script
|
|
|
|
|
2018-03-29 17:57:59 +02:00
|
|
|
language: cpp
|
2018-03-28 11:44:20 +02:00
|
|
|
|
|
|
|
dist: trusty
|
|
|
|
cache: ccache
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2018-05-13 16:55:10 +02:00
|
|
|
##########################################################
|
|
|
|
# Clang on OSX
|
|
|
|
# Travis takes longer to start OSX instances,
|
|
|
|
# so leaving it first for the overall build to be faster.
|
|
|
|
##########################################################
|
2018-05-13 17:05:13 +02:00
|
|
|
|
2018-05-13 16:55:10 +02:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode9.1
|
2018-05-13 17:38:31 +02:00
|
|
|
compiler: clang
|
|
|
|
env: ZMQ_VERSION=4.2.5 DRAFT=1
|
2018-05-13 17:05:13 +02:00
|
|
|
|
|
|
|
##########################################################
|
|
|
|
# GCC on Linux
|
|
|
|
##########################################################
|
|
|
|
|
2018-05-15 22:36:04 +02:00
|
|
|
# GCC default, draft disabled, older libzmq with pkg-config
|
2018-05-13 17:05:13 +02:00
|
|
|
- os: linux
|
2018-05-15 21:57:19 +02:00
|
|
|
sudo: true
|
|
|
|
env: ZMQ_VERSION=4.2.0 BUILD_TYPE=pkgconf
|
2018-05-13 17:05:13 +02:00
|
|
|
|
2018-05-15 22:36:04 +02:00
|
|
|
# GCC default, draft disabled, latest libzmq
|
|
|
|
- os: linux
|
|
|
|
env: ZMQ_VERSION=4.2.5
|
|
|
|
|
2018-05-13 17:05:13 +02:00
|
|
|
# GCC 7, draft enabled, latest libzmq
|
2018-04-03 12:04:23 +02:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-7
|
|
|
|
env:
|
2018-05-13 16:21:06 +02:00
|
|
|
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" ZMQ_VERSION=4.2.5 DRAFT=1
|
2018-05-13 17:05:13 +02:00
|
|
|
# - env: BUILD_TYPE=cmake DO_CLANG_FORMAT_CHECK=1 CLANG_FORMAT=/usr/local/clang-5.0.0/bin/clang-format
|
|
|
|
# os: linux
|
|
|
|
# addons:
|
|
|
|
# apt:
|
|
|
|
# sources:
|
|
|
|
# - llvm-toolchain-trusty-5.0
|
|
|
|
# packages:
|
|
|
|
# - clang-5.0
|
2018-03-28 11:44:20 +02:00
|
|
|
|
2018-03-29 17:57:59 +02:00
|
|
|
before_install:
|
2018-05-13 17:21:48 +02:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then pip install --user cpp-coveralls; fi
|
2018-05-12 23:02:04 +02:00
|
|
|
|
2018-05-13 16:21:06 +02:00
|
|
|
# Build and check this project
|
2018-05-12 23:02:04 +02:00
|
|
|
script:
|
2018-04-03 12:04:23 +02:00
|
|
|
- eval "${MATRIX_EVAL}"
|
2018-05-13 16:55:10 +02:00
|
|
|
- cmake --version
|
2018-03-28 11:44:20 +02:00
|
|
|
- ./ci_build.sh
|
2018-03-29 17:57:59 +02:00
|
|
|
|
|
|
|
after_success:
|
2018-05-13 17:21:48 +02:00
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then coveralls --root . -E ".*external.*" -E ".*CMakeFiles.*" -E ".*tests/" -E ".*demo/" -E ".*libzmq/"; fi
|