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

fail to publish report to coveralls on jenkins build machine which uses xcode7 #6

Open
helenren opened this issue Dec 22, 2016 · 5 comments

Comments

@helenren
Copy link

Hit follow error: hit Error: No .gcno files in build directory: /Users/iosadmin/03b72f19/workspace/xcode-coveralls/myDerivedData

The command I run is on jenkins after running my test via xcodebuild:

xcode-coveralls --verbose --service jenkins --token --project $WORKSPACE/libs/SalesforceAnalytics --id $BUILD_NUMBER ${WORKSPACE}/myDerivedData

after test, my code only generate coverage.profdata and .xccoverage code coverage file. There is no .gcno file. Can this tool work with new code coverage formate? And how?

@macmade
Copy link
Owner

macmade commented Dec 22, 2016

Not yet.
For now you'll also need to generate the «old» code coverage format, using the following settings in the Xcode build settings:

  • Generate Test Coverage Files (GCC_GENERATE_TEST_COVERAGE_FILES)
  • Instrument Program Flow (GCC_INSTRUMENT_PROGRAM_FLOW_ARCS)

@helenren
Copy link
Author

After to make my project to generate old code coverage format, .gcno files are generated. Thanks.

While hit another error when running: xcode-coveralls --verbose --service jenkins --token --project $WORKSPACE/libs/SalesforceAnalytics --id $BUILD_NUMBER "${WORKSPACE}/myDerivedData/Build/Intermediates/SalesforceAnalytics.build/Debug-iphonesimulator/SalesforceAnalytics.build/Objects-normal/x86_64":

Error: There was a problem communicating with the secure web proxy server (HTTPS).

Since our jenkins build machine locates inside a firewall, so I setup http_proxy/https_proxy ahead. Is that cause the problem? How to make it work with using proxy server? Thanks!

@helenren
Copy link
Author

For more information, after running that xcode-coeralls command, here is the partial logs. Is looks correct, or something is wrong? On coveralls.io server side, nothing post there.

GIT error (-1): unable to retrieve the branch name
13:35:20 - Reference 'HEAD' is neither a local nor a remote branch.
13:35:20 {
13:35:20 "git" : {
13:35:20 "head" : {
13:35:20 "author_name" : "Qingchun Ren",
13:35:20 "id" : "a5215ee49f30393728a73a47798b3a2293a3d83f",
13:35:20 "committer_name" : "Qingchun Ren",
13:35:20 "committer_email" : "[email protected]",
13:35:20 "author_email" : "[email protected]",
13:35:20 "message" : "disable analytic and sdkcore to not generte new formate cc data\n"
13:35:20 },
13:35:20 "remotes" : [
13:35:20 {
13:35:20 "name" : "origin",
13:35:20 "url" : "https://github.com/helenren/SalesforceMobileSDK-iOS.git"
13:35:20 }
13:35:20 ]
13:35:20 },
13:35:20 "repo_token" : "ZMLmqGuydf5sg6XYUZ5kWIkt3viGT9428",
13:35:20 "source_files" : [
13:35:20 {

@macmade
Copy link
Owner

macmade commented Dec 23, 2016

Not really sure about proxies...

Have you tried with the --verbose flag?
Also, you can try with --dry-run.

@helenren
Copy link
Author

The logs is from the command with --verbose configured.

And run with --dry-run, that web proxy server error is gone.

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

No branches or pull requests

2 participants