Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: cppzmq build broken with C++11 compiler and git cloned repo. #236

Merged
merged 1 commit into from
May 20, 2018

Conversation

kurdybacha
Copy link
Contributor

@kurdybacha kurdybacha commented May 20, 2018

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. That fixes #235 wher draft was implicitly enabled.

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 build.

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.
@coveralls
Copy link

coveralls commented May 20, 2018

Pull Request Test Coverage Report for Build 100

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+21.4%) to 76.068%

Files with Coverage Reduction New Missed Lines %
zmq.hpp 2 61.97%
Totals Coverage Status
Change from base Build 99: 21.4%
Covered Lines: 89
Relevant Lines: 117

💛 - Coveralls

1 similar comment
@coveralls
Copy link

Pull Request Test Coverage Report for Build 100

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+21.4%) to 76.068%

Files with Coverage Reduction New Missed Lines %
zmq.hpp 2 61.97%
Totals Coverage Status
Change from base Build 99: 21.4%
Covered Lines: 89
Relevant Lines: 117

💛 - Coveralls

@sigiesec sigiesec merged commit 3e56f56 into zeromq:master May 20, 2018
@@ -19,11 +19,7 @@ if (ZeroMQ_FOUND AND (NOT TARGET libzmq OR NOT TARGET libzmq-static))
message(FATAL_ERROR "ZeroMQ version not supported!")
endif()

if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this check is used by all other ZMQ projects which implement a draft system

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, in this case we can keep it consistent with others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants