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

No upload to coveralls.io #58

Open
ujh opened this issue Jun 22, 2016 · 9 comments
Open

No upload to coveralls.io #58

ujh opened this issue Jun 22, 2016 · 9 comments

Comments

@ujh
Copy link

ujh commented Jun 22, 2016

Hey there,

sorry if this is the wrong place but somehow the upload to coveralls.io through Travis fails. It used to work maybe a month ago and then I just realised that the tests were failing. That was easy enough to fix. Now I get the following output: https://travis-ci.org/ujh/iomrascalai/jobs/139514349#L1425 (I hope this opens it on the correct line of the log). It seems that kcov is called with wrong arguments if I read the output correctly.

This is the .travis.yml I'm using: https://github.com/ujh/iomrascalai/blob/master/.travis.yml

As I'm the first reporting this I assume I've done something wrong, but I just can't figure out what I'm doing wrong.

@hexjelly
Copy link

I have the same output, and it also stopped working for me about 3-4 weeks ago.

@ujh
Copy link
Author

ujh commented Jun 23, 2016

I see. Now the question is if this is an issue with travis-cargo, kcov, or coveralls.io. :) The output from Travis suggests that kcov isn't even called correctly. But I also don't know how the interaction between kcov and coveralls.io is configured. Do I need to do something? Maybe I even did something back in the day to get this to work but I don't even remember and the documentatio of travis-cargo doesn't even mention anything.

@ujh
Copy link
Author

ujh commented Jun 29, 2016

As I don't have a Linux box I have a hard time debugging this, but I managed to get it to work by manually calling kcov. This means that it's an issue with the arguments that travis-cargo passes to kcov. My after_success now looks like this:

after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis-cargo coveralls --no-sudo --verify; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./kcov/build/src/kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/iomrascalai-*; fi

Now stuff is getting uploaded again.

@zetok
Copy link

zetok commented Jul 8, 2016

Huh, weird, it worked for me yesterday, but stopped working today when I pushed to master...

Thanks @ujh for posting what made things work again! :)

zetok added a commit to zetok/tox that referenced this issue Jul 8, 2016
Apparently `travis-cargo` script doesn't like to reliably upload results
to coveralls:
huonw/travis-cargo#58

Also don't change working directory when deploying docs.
@cholcombe973
Copy link

Mine is also failing with a usage message. I'll try @ujh 's fix.

@Hoverbear
Copy link

Related to #55.

@Rafagd
Copy link

Rafagd commented Sep 26, 2016

Is this still broken?

@dpzmick
Copy link

dpzmick commented Oct 28, 2016

yes, mine is failing with a usage message

@gnzlbg
Copy link

gnzlbg commented Jan 18, 2017

This is still broke for me.

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

8 participants