objarni/pytddmon — pull request #4 by wari (2013-11-26 08:17:23+00:00)
Title: Support for Travis CI

Hey, I thought a Continuous Testing tool deserved to be tested by a Continuous Integration tool (get it?)

So, here are the changes that I've done to get this to work: See https://travis-ci.org/wari/pytddmon/builds for the amount of blood sweat and tears to figure out how this work.

Basically, the history goes like this:

- Got permission denied when doing systest
- Thought it's a permissions issue, so, added feature to log to a different file
- Still same weird problems
- So I thought, hey, let pytddmon log to stdout (not in this branch of commit though)
- Still same errors.
- After missing a lot of hairs, discovered it's a travis issue with subprocess module in python
- Also failed with, weird error in python 2.6, and new str encoding error I don't understand in python 3
- Go back to to log to file feature, and use the travis fix
- AND IT WORKS!

After all that, I think the original code may work, but I've not tried it.. Too tired.. :) SO:

* PyTDDMon will log to file, only if --log-and-exit switch is defined
* systest can log to a tmp directory, with the option of cleaning up after.
* You can now allow travis to point to your repo, and any pull requests by anyone will be auto tested for you. before you even commit.

Thanks, it's been a learning experience.