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

Trigger build if another repository updates #631

Closed
ojii opened this issue Jul 16, 2012 · 11 comments
Closed

Trigger build if another repository updates #631

ojii opened this issue Jul 16, 2012 · 11 comments

Comments

@ojii
Copy link

ojii commented Jul 16, 2012

I want the build trigger to fire for project pymaging-png both when its own repository updates, as well as when the dependency project pymaging updates. It's important that this is configured in the pymaging-png package, so new packages don't have to change configuration in the core package.

The use case here is to have a build matrix of pymaging-png building against the latest stable version of pymaging, and the master branch of it. Like this, finding incompatibilities introduced by changes in either repo would be spotted more easily.

@michaelklishin
Copy link
Contributor

It is a bit unrealistic to reliably implement this for 10+ supported languages, and Python alone will be challenging with its current packaging system. Sorry, no plans to do this.

@ojii
Copy link
Author

ojii commented Jul 19, 2012

How does this depend on the packaging? Let the travis.yml handle this. All I want is for the "sub" projects (or whatever you want to call them) to trigger to build. pymaging-png should be able to define "also build after pymaging builds". It's what I do in Jenkins right now and it's wonderful.

@michaelklishin
Copy link
Contributor

No. Too much complexity, too few projects need this. Please use Jenkins, it was created for cases like this and it works very well.

@ojii
Copy link
Author

ojii commented Jul 19, 2012

I don't know about your first reason, I highly disagree with the second reason. Ah well, too bad, back to Jenkins.

@motiejus
Copy link

motiejus commented Aug 8, 2012

I was looking for something probably similar. Here is my situation:

I want to test erlualib_examples every time erlualib is updated. This is one of the ways to check if library change did not introduce incompatible changes in the examples repository.

This could be easily achieved using webhooks, since travis already supports them. The only thing we need now is a "public url", which we could POST when we want to trigger a build. See my hypothetical example:

erlualib/.travis.yml:

notifications:
  webhooks:
    urls:
      - http://hooks.travis-ci.org/erlualib_examples/please_build/master

Since you already have a mechanism to trigger a build, in theory we could use it. However, we need to provide token (as http auth) and some post data (travis_url and payload). Now webhooks do not allow neither http auth (and it shouldn't, for obvious reasons), nor custom http post parameters.

A way to implement this feature would be to "open up" the listener service, so it would be possible to trigger a build from a webhook.

@ojii
Copy link
Author

ojii commented Aug 8, 2012

another use case: any Django app. I'd love to automatically trigger a build on my Django apps (the stuff with getting the latest Django version is already in the matrix build config, so don't worry about that, packaging or anything) to see if they still work with the latest in development Django version.

@themihai
Copy link

We need this as well. What's so complex to add a hook which would trigger another build after success ?
We host all the templates on a common repository. It would make sense to rebuild when a dependency (e.g templates repository) is updated.

@knowledgewarrior
Copy link

I'd like this feature too. I want to be able to run a smoke test against production after a deployment of our application code.

@alwinmark
Copy link

same here. A webtrigger would be awesome

@lkrnac
Copy link

lkrnac commented Apr 14, 2014

+1

@moizjv
Copy link

moizjv commented Aug 21, 2014

any updates ?

@travis-ci travis-ci locked and limited conversation to collaborators Aug 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants