Commit Graph

37 Commits

Author SHA1 Message Date
Alberto Invernizzi
e748f5f66c wrong variable name 2021-06-28 00:22:15 +02:00
Alberto Invernizzi
439d400ff3 fix path setup for osx/linux + improve readability 2021-06-28 00:12:58 +02:00
Alberto Invernizzi
37488aff66 double square brackets for if are not working in travis 2021-06-28 00:05:54 +02:00
Alberto Invernizzi
206239a663 use before_script in travis 2021-06-27 20:06:05 +02:00
Alberto Invernizzi
be1ca6f960 try downloading and installing last cmake version in travis 2021-06-27 19:15:47 +02:00
Simon Giesecke
8e60667413 Problem: cpp-coveralls can no longer be installed using Python2 pip.
Solution: Use pip3 instead of pip to install coveralls.
2021-05-14 16:47:44 +01:00
Gudmundur Adalsteinsson
5999e5adc7
Problem: Macros not defined in older versions (#386)
* Problem: Macros not defined in older versions

Solution: Guard usage of libzmq macros

* Test older version of libzmq with C++11 or later

* Use a slightly newer libzmq version
2020-02-21 11:29:12 +01:00
Gudmundur Adalsteinsson
0abc513be9 Problem: No tests with clang
Solution: Add clang-8 to travis matrix
2019-10-05 20:12:05 +00:00
Gudmundur Adalsteinsson
9b20c461a0 Use C++11 when testing with GCC 4.9 2019-08-30 22:23:52 +00:00
Gudmundur Adalsteinsson
b6765e5692 Add GCC 4.9 to travis tests 2019-08-30 21:31:31 +00:00
Gudmundur Adalsteinsson
3c29dc99fe Problem: External header catch.hpp included in coverage
Solution: Exclude from analysis
2019-05-08 19:53:59 +00:00
Simon Giesecke
c5fe9d1c27 Problem: current libzmq is not tested
Solution: update default libzmq version to 4.3.1, and add explicit test for 4.2.5, update README accordingly
2019-02-04 10:32:46 +01:00
Pawel Kurdybacha
9a7a85703c Problem: Coverage with coveralls not working
Solution: Enable coveralls for one linux build target and fix coveralls
configuration.
2018-06-03 19:09:44 +01:00
Pawel Kurdybacha
115bfffc50 Problem: Travis requires sudo
sudo was required for for pkg-config libzmq build as cppzmq could not
find not installed pkg-config libzmq.

Solution: cppzmq to use cmake prefix paths for pkg config paths as well.
2018-05-23 19:18:28 +00:00
Pawel Kurdybacha
380e39856b Problem: draft build not enabled for git repo
cppzmq does not follow other zeromq projects where draft builds are
enabled by default for git repository.

Solution: revert back code where ENABLE_DRAFTS in set to ON if .git
directory exists
2018-05-23 18:34:44 +01:00
Pawel Kurdybacha
099bcfc4a4 Problem: cppzmq build broken with C++11 compiler and git cloned repo.
Default build, ./ci_build.sh without any arguments, which causes to run
with draft disabled, does not work properly for git cloned repository and
C++11 compiler.

Two issues:
1. For git cloned repository ENABLE_DRAFTS is ON by default but libzmq
compiled build without drafts .Travis did not catch that because default build
runs on non C++11 compiler.
2. testutil.hpp does not build because of missing draft guards.

Solution 1: Remove check for presence of .git for enabling draft API as it
is confusing to use with ENABLE_DRAFTS flag and there should be only one
explicit way to enable draft build.

Solution 2: add missing draft guards in testutil.hpp for server/client
socket in use there.

Solution 3: add extra Travis build covering C++11 compiler and non
draft enabled build.
2018-05-20 07:53:56 +01:00
Pawel Kurdybacha
265a1071e2 Problem: Default Travis build variables not defined.
Solution: simplify Travis config file by defining default build options
DRAFT and ZMQ_VERSION in ci_build.sh script
2018-05-16 21:24:38 +01:00
Pawel Kurdybacha
88bb8b1980 Problem: demo does not build for libzmq pkg-config case.
It seems to be a problem with cppzmq where FindZeroMQ.cmake is not
found without installing cppzmq.

Solution: install cppzmq for pkg-config build type.
2018-05-16 21:13:39 +01:00
Pawel Kurdybacha
9b0dd89cd9 Problem: Travis container with sudo long start
Solution: Move sudo required build to top to start sooner to get better
overall build time.
2018-05-16 21:13:39 +01:00
Pawel Kurdybacha
8dfec111f7 Problem: libzmq pkg-config build not tested
Solution: build and install libzmq using autogen tools.
2018-05-16 21:13:39 +01:00
Pawel Kurdybacha
fe56665b06 Problem: redundant addson and os section in Travis config
Solution: sections removed
2018-05-13 16:57:53 +01:00
Pawel Kurdybacha
8d84f9a1af Problem: cmake already pre-installed on OSX
Solution: do not try to install cmake on OSX and add clang as used
compiler explicitly
2018-05-13 16:57:24 +01:00
Pawel Kurdybacha
3807107f56 Problem: coveralls does not install on OSX
Solution: enable coverall on linux only.
2018-05-13 16:57:24 +01:00
Pawel Kurdybacha
4311d1d933 Problem: enabled sudo for travis build
After previous changes `sudo` is not required anymore.
Solution: disable sudo.
2018-05-13 16:57:24 +01:00
Pawel Kurdybacha
0fd3e165f3 Problem: OSX build does not start first.
Solution: remove matrix and include build combination manually.
2018-05-13 16:05:13 +01:00
Pawel Kurdybacha
1fc0675a83 Problme: OSX build does not use clang
Default compiler on OSX is clang so it should be default.
Solution: switch from gcc to clang for OSX build.
2018-05-13 15:55:10 +01:00
Pawel Kurdybacha
738d44dc88 Problem: OSX build not enabled
Solution: Enable OSX build with DRAFT and latest libzmq
2018-05-13 15:44:46 +01:00
Pawel Kurdybacha
21350a3fd3 Problem: Only one version of libzmq tested
Solution: use libzmq 4.2.4, last two releases in use now.
2018-05-13 15:30:56 +01:00
Pawel Kurdybacha
a5578a6f25 Problem: libzmq 4.2.0 cmake build broken
It seems that there is a bug in libzmq 4.2.0 cmake configs that prevents
linking to it without installing.

Solution: disable libzmq 4.2.0 for cmake builds
2018-05-13 15:30:56 +01:00
Simon Giesecke
cc5f4050dc Problem: no build/tests with DRAFT
Solution: added initial test case
2018-04-03 18:41:44 +02:00
Simon Giesecke
83f854869a Problem: no tests for socket_t ctor accepting enum socket_type
Solution: added test case
2018-04-03 18:41:44 +02:00
Simon Giesecke
80dc604ed0 Problem: No tests for libzmq 4.2.0
Solution: add travis job with libzmq 4.2.0
2018-04-03 18:41:44 +02:00
Simon Giesecke
63f81e40d6 Problem: code coverage not working
Solution: build tests within cppzmq build, and add separate demo
2018-04-03 18:41:32 +02:00
Simon Giesecke
07b583a99a Problem: test not using cppzmq
Solution: add dependency on cppzmq
2018-03-29 18:46:04 +02:00
Giesecke
e5ca9a0a95 Problem: coverage is not enabled
Solution: add coveralls
2018-03-29 18:11:28 +02:00
Simon Giesecke
7a8cc9d7cf Problem: version detection broken, confuses libzmq and cppzmq versions
Solution: Fix version detection and cmake syntax errors
Fixes #182
2018-03-28 12:58:12 +02:00
Simon Giesecke
702d2fcf53 Problem: no CI for cppzmq
Solution: add travis-ci
2018-03-28 12:54:07 +02:00