Travis coveralls build in forked repo always fails

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
stijn
Posts: 735
Joined: Thu Apr 24, 2014 9:13 am

Travis coveralls build in forked repo always fails

Post by stijn » Sat Feb 11, 2017 9:47 am

I don't recall exactly when this started happening but it's becoming a bit annoying now: the Travis builds of my repo all fail with

Code: Select all

{u'message': u"Couldn't find a repository matching this job.", u'error': True}

The command "(cd unix && coveralls --root .. --build-root . --gcov $(which gcov) --gcov-options '\-o build-coverage/' --include py --include extmod)" exited with 1.
everything else builds/tests fine, just this last step fails and it doesn't matter which branch is used. Example see https://travis-ci.org/stinos/micropython.
Does anyone else have this problem and/or knows how to resolve it?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Travis coveralls build in forked repo always fails

Post by dhylands » Sat Feb 11, 2017 10:21 am

I always see that as well. I haven't looked into what might be causing it.

stijn
Posts: 735
Joined: Thu Apr 24, 2014 9:13 am

Re: Travis coveralls build in forked repo always fails

Post by stijn » Tue Feb 21, 2017 8:57 pm

In the end this was a basic RTFM problem. I had no idea how Coveralls works, but it's hosted so you need an account and access it with a token. In practice:
- go to coveralls.io, login with github
- add micropython repo, note the token
- go to travis-ci.org, login with github
- go to micropython repo's settings
- add environment variable COVERALLS_REPO_TOKEN with token value
At last, passing Travis builds :P

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Travis coveralls build in forked repo always fails

Post by dhylands » Wed Feb 22, 2017 12:11 am

Cool - thanks for figuring out what needed to be done.

I followed those steps, and my travis stuff turned green as well.

Post Reply