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
|
2021-05-14 16:33:52 +02:00
|
|
|
python: 3.6
|
2018-06-02 18:25:37 +02:00
|
|
|
before_install:
|
2021-05-14 16:33:52 +02:00
|
|
|
- pip3 install --user cpp-coveralls
|
2018-06-02 18:25:37 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-7
|
2021-05-14 16:33:52 +02:00
|
|
|
- python3-pip
|
2018-06-02 18:25:37 +02:00
|
|
|
env:
|
|
|
|
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" ENABLE_DRAFTS=ON COVERAGE=ON
|
|
|
|
after_success:
|
2019-05-08 21:53:59 +02:00
|
|
|
- coveralls -r . -E ".*external.*" -E ".*CMakeFiles.*" -E ".*tests/" -E ".*demo/" -E ".*libzmq.*/" -E ".*catch/" -b cppzmq-build --gcov-options '\-lp'
|
2018-06-02 18:25:37 +02:00
|
|
|
|
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
|
|
|
|
2019-02-04 10:32:46 +01:00
|
|
|
# GCC default, draft disabled, latest 4.2.x libzmq (defined in ci_build.sh)
|
|
|
|
- os: linux
|
|
|
|
env: ZMQ_VERSION=4.2.5
|
|
|
|
|
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
|
|
|
|
|
2020-02-21 11:29:12 +01:00
|
|
|
# GCC 6, draft disabled (default), older libzmq
|
2018-05-20 08:00:08 +02:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-6
|
|
|
|
env:
|
2020-02-21 11:29:12 +01:00
|
|
|
- ZMQ_VERSION=4.2.5 MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
|
2018-05-20 08:00:08 +02:00
|
|
|
|
2019-08-30 23:31:31 +02:00
|
|
|
# GCC 4.9, draft disabled (default), latest libzmq (default)
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-4.9
|
|
|
|
env:
|
2019-08-31 00:23:52 +02:00
|
|
|
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" CMAKE_CPP_STD=-DCMAKE_CXX_STANDARD=11
|
2019-08-30 23:31:31 +02:00
|
|
|
|
2018-05-20 08:00:08 +02:00
|
|
|
# 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
|
|
|
|
2019-10-05 21:50:17 +02:00
|
|
|
# Clang 8.0, draft disabled (default), latest libzmq (default), C++17
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- llvm-toolchain-trusty-8
|
|
|
|
packages:
|
|
|
|
- g++-9
|
|
|
|
- clang-8
|
|
|
|
env:
|
|
|
|
- MATRIX_EVAL="CC=clang-8 && CXX=clang++-8" CMAKE_CPP_STD=-DCMAKE_CXX_STANDARD=17
|
|
|
|
|
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
|
|
|
|
2021-06-27 20:06:05 +02:00
|
|
|
before_script:
|
|
|
|
- mkdir -p /tmp/cmake.root
|
2021-06-28 00:12:58 +02:00
|
|
|
- |
|
2021-06-28 00:19:38 +02:00
|
|
|
if [ $TRAVIS_OS_NAME = 'linux' ]; then
|
2021-06-28 00:12:58 +02:00
|
|
|
CMAKE_PKG_SUFFIX="linux-x86_64"
|
|
|
|
else
|
|
|
|
CMAKE_PKG_SUFFIX="macos10.10-universal"
|
|
|
|
fi
|
2021-06-27 20:06:05 +02:00
|
|
|
- wget -qO- "https://cmake.org/files/v3.20/cmake-3.20.5-$CMAKE_PKG_SUFFIX.tar.gz" | tar --strip-components=1 -xz -C /tmp/cmake.root
|
2021-06-28 00:12:58 +02:00
|
|
|
- |
|
2021-06-28 00:19:38 +02:00
|
|
|
if [ $TRAVIS_OS_NAME = 'linux' ]; then
|
2021-06-28 00:12:58 +02:00
|
|
|
CMAKE_BIN_DIR="bin"
|
|
|
|
else
|
|
|
|
CMAKE_BIN_DIR="CMake.app/Contents/bin"
|
|
|
|
fi
|
2021-06-27 20:06:05 +02:00
|
|
|
- export PATH=/tmp/cmake.root/$CMAKE_BIN_DIR:$PATH
|
|
|
|
|
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}"
|
2021-06-27 20:06:05 +02:00
|
|
|
- cmake --version
|
2018-03-28 11:44:20 +02:00
|
|
|
- ./ci_build.sh
|