You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
this is not working the way you are expecting; you can see Travis is just running the tests for plonesocial.suite; if you want to integrate all the tests you will have to do it in plonesocial.buildout, but we still have to figure out how to trigger Travis when a push occurs on one of the dependency packages... I'll ask @datakurre about it.
The reason will be displayed to describe this comment to others. Learn more.
@hvelarde AFAIK, that's not supported by Travis-CI.
Yet, you can achieve this indirectly by using GitHub WebHooks and Service Hook API.
The downside is that this could make a GitHub API token (bound to your GitHub account with public repo read/write rights) visible for users / applications with certain rights for the repositories in question.
Generate new API token with your permissios with curl -i -u USERNAME -d '{"scopes":["public_repo"]}' https://api.github.com/authorizations
Find out the id of Travis-hook you'd like to trigger manually with curl -in https://api.github.com/repos/USERNAME/REPONAME/hooks?access_token=TOKEN
Open Service Hooks from the admin tab of the repository that should trigger that Travis-hook and add a new WebHook URL to trigger it via GitHub's Service Hook API with curl -d -i https://api.github.com/repos/USERNAME/REPONAME/hooks/TRAVISHOOKID/test?access_token=TOKEN
This would make every commit to the repository with the described WebHook to trigger the defined Travis-hooks (usually for an another repo).
Well, this feels like a hack. Let's hope that GitHub and Travis will eventually come out with something better.
The reason will be displayed to describe this comment to others. Learn more.
It's not a Travis problem, it's a problem of the travis.cfg Plone buildout. I understand I don't have the equivalent of Jenkins multi-repo trigger support in Travis. But on each push to plonesocial.suite, I'd like to run integration tests across the full suite. However, I get ImportErrors on the other plonesocial packages even though they're on the test path. Seems to be specific for the caching directory setup in the travis.cfg. Have reproduced this locally, but haven't been able to fix it.
The reason will be displayed to describe this comment to others. Learn more.
@gyst, Could you give links to the Travis builds with that issue? I guess, I'm responsble for the caching directory setup, so I should look into this :)
The reason will be displayed to describe this comment to others. Learn more.
On 10/15/2012 07:47 PM, Asko Soukka wrote:
Ok, I can reproduce this locally. Weird.
Thanks for looking into that. I've been banging my head on it for quite
a while but couldn't get it solved. The eggs are in the sys path,
they're on the test path, still it gives that weird ImportError.
Doesn't look sane to me to have the cache dir and egg name as dotted
python import path.
##
**\* Guido A.J. Stevens **\* tel: +31.43.3618933 ***
**\* guido.stevens@cosent.nl **\* Postbus 619 ***
**\* http://www.cosent.nl **\* 6200 AP Maastricht ***
```
s h a r i n g m a k e s s e n s e
```
http://twitter.com/GuidoStevens
The reason will be displayed to describe this comment to others. Learn more.
On 10/15/2012 08:18 PM, Asko Soukka wrote:
|+ packages=find_packages('src', exclude=['ez_setup']),
- package_dir={'': 'src'},|
OK, did that. Let's see what Travis makes of it...
##
**\* Guido A.J. Stevens **\* tel: +31.43.3618933 ***
**\* guido.stevens@cosent.nl **\* Postbus 619 ***
**\* http://www.cosent.nl **\* 6200 AP Maastricht ***
```
s h a r i n g m a k e s s e n s e
```
http://twitter.com/GuidoStevens
bbc7003
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not working the way you are expecting; you can see Travis is just running the tests for plonesocial.suite; if you want to integrate all the tests you will have to do it in plonesocial.buildout, but we still have to figure out how to trigger Travis when a push occurs on one of the dependency packages... I'll ask @datakurre about it.
bbc7003
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hvelarde AFAIK, that's not supported by Travis-CI.
Yet, you can achieve this indirectly by using GitHub WebHooks and Service Hook API.
The downside is that this could make a GitHub API token (bound to your GitHub account with public repo read/write rights) visible for users / applications with certain rights for the repositories in question.
curl -i -u USERNAME -d '{"scopes":["public_repo"]}' https://api.github.com/authorizations
curl -in https://api.github.com/repos/USERNAME/REPONAME/hooks?access_token=TOKEN
curl -d -i https://api.github.com/repos/USERNAME/REPONAME/hooks/TRAVISHOOKID/test?access_token=TOKEN
This would make every commit to the repository with the described WebHook to trigger the defined Travis-hooks (usually for an another repo).
Well, this feels like a hack. Let's hope that GitHub and Travis will eventually come out with something better.
bbc7003
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a Travis problem, it's a problem of the travis.cfg Plone buildout. I understand I don't have the equivalent of Jenkins multi-repo trigger support in Travis. But on each push to plonesocial.suite, I'd like to run integration tests across the full suite. However, I get ImportErrors on the other plonesocial packages even though they're on the test path. Seems to be specific for the caching directory setup in the travis.cfg. Have reproduced this locally, but haven't been able to fix it.
bbc7003
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gyst, Could you give links to the Travis builds with that issue? I guess, I'm responsble for the caching directory setup, so I should look into this :)
bbc7003
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, found the problematic Travis build.
bbc7003
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I can reproduce this locally. Weird.
bbc7003
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bbc7003
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Resolved. You are not seeing the problemt locally, because of shared eggs directory outside plonesocial.suite-directory.
The problem is caused by the following line generated into bin/test
That will recurse also into buildout-cache and register tests in the other packages in a wrong way.
One way to resolve that would be moving code (plonesocial directory) under src and update setup.py
also, other testable eggs should be included in test-part. With collective test-buildout that could be done with
After these changes, I managed to run all tests with
bbc7003
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.