ipython/ipython — pull request #1685 by takluyver (2012-05-02 14:38:51+00:00)
Title: Add script to test pull request

Run this with a pull request number, and it will:

- Make virtualenvs for any available Python versions
- Clone the main IPython repository (in a separate location from your working clone), and update it to current master.
- Look up the pull request, get the branch location.
- Check out a clean branch, merge the branch to test in
- Install and run the tests in each virtualenv
- Produce a report like this, with links to gist-ed logs if a test fails:

```
**Test results for commit ceaa52c merged into master**
python2.7 : OK
python3.2 : OK
Not available for testing: python2.6, python3.1
```

Still to do:
- The github API says if a PR is mergeable. If it isn't, don't try to merge it.
- Check that it works as expected when a test fails.
- Command line options, e.g. test on a specific version of Python.
- Github integration - post the report as a comment automatically.