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
|
2018-05-23 20:31:07 +02:00
|
|
|
sudo: false
|
2018-03-28 11:44:20 +02:00
|
|
|
|
|
|
|
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
|
2018-05-23 19:34:44 +02:00
|
|
|
env: ENABLE_DRAFTS=ON
|
2018-05-13 17:05:13 +02:00
|
|
|
|
|
|
|
##########################################################
|
|
|
|
# GCC on Linux
|
|
|
|
##########################################################
|
|
|
|
|
2018-06-02 18:25:37 +02:00
|
|
|
# Coverage, GCC 7, draft enabled, latest libzmq (default)
|
|
|
|
- os: linux
|
|
|
|
before_install:
|
|
|
|
- pip install --user cpp-coveralls
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-7
|
|
|
|
env:
|
|
|
|
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" ENABLE_DRAFTS=ON COVERAGE=ON
|
|
|
|
after_success:
|
|
|
|
- coveralls -r . -E ".*external.*" -E ".*CMakeFiles.*" -E ".*tests/" -E ".*demo/" -E ".*libzmq.*/" -b cppzmq-build --gcov-options '\-lp'
|
|
|
|
|
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-16 21:30:35 +02:00
|
|
|
env: ZMQ_VERSION=4.2.0 BUILD_TYPE=pkgconfig
|
2018-05-13 17:05:13 +02:00
|
|
|
|
2018-05-16 21:52:27 +02:00
|
|
|
# GCC default, draft disabled, default libzmq (defined in ci_build.sh)
|
2018-05-15 22:36:04 +02:00
|
|
|
- os: linux
|
|
|
|
|
2018-05-20 08:00:08 +02:00
|
|
|
# GCC 6, draft disabled (default), latest libzmq (default)
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-6
|
|
|
|
env:
|
|
|
|
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
|
|
|
|
|
|
|
|
# GCC 7, draft enabled, latest libzmq (default)
|
2018-04-03 12:04:23 +02:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-7
|
|
|
|
env:
|
2018-05-23 19:34:44 +02:00
|
|
|
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" ENABLE_DRAFTS=ON
|
2018-06-02 18:25:37 +02:00
|
|
|
|
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-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
|
|
|
|