Auto-run tests on pull requests in Github
Hi,
Is it possible to automatically build and run tests for pull
requests in Github?
Ideally it would do a proper merge on a local branch of master, which would catch any merge conflicts as well, but building and running tests off the remote pull request branch is more than good enough.
This would be immensely useful, in particular for open source
projects with a lot of external contributors.
If this is not in place, what are your thoughts and are there any
alternative workflows you would recommend for this scenario?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by anjdreas on 28 Jan, 2014 12:04 PM
I guess something similar to this:
http://blog.travis-ci.com/2012-09-04-pull-requests-just-got-even-mo...
Support Staff 2 Posted by Feodor Fitsner on 28 Jan, 2014 06:45 PM
Hi Anjdreas,
Right now it's not possible, but we'll start working on that as soon as the next AppVeyor release is in production. Beta of the next release will be available this week.
Thank you for the suggestion and the link! ;)
3 Posted by eysteinbye on 16 Apr, 2014 02:59 PM
Any progress on this? Or do you have any suggestions to alternative work-flow? We want AppVeyor to run out tests when a Pull Request is made, so we know if it is safe or not to merge it into the master.
How would you do this?
Support Staff 4 Posted by Feodor Fitsner on 16 Apr, 2014 04:43 PM
Yes, there is progress on PR. They will be available next week. Thanks for your patience.
5 Posted by odinserj on 31 May, 2014 07:39 AM
Great feature for great CI server! I'm wondering, should I change anything in my settings to get it work?
6 Posted by Antoine Blanche... on 31 May, 2014 01:45 PM
Any progress on that ? It would be so cool :)
Support Staff 7 Posted by Feodor Fitsner on 31 May, 2014 03:02 PM
GitHub pull requests are already supported! To make them work for existing projects enable "pull request" event in webhook settings on GitHub, like on the attached screenshot. You can find webhook URL on General tab of project settings.
8 Posted by odinserj on 31 May, 2014 03:22 PM
You are the best, thank you very much!
9 Posted by YafimK on 14 Sep, 2016 06:02 AM
Is there a way to differentiate in AppVeyor script between a job called by PR and one by commit?
10 Posted by Ilya Finkelshte... on 14 Sep, 2016 06:07 PM
Hello,
I believe you can check one of those environment variables:
* APPVEYOR_PULL_REQUEST_NUMBER - GitHub Pull Request number;
* APPVEYOR_PULL_REQUEST_TITLE - GitHub Pull Request title
--ilya.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:08 AM.