dripton / Slugathon

Clone of the old Avalon Hill fantasy wargame Titan, using Python / PyGTK / Twisted
https://github.com/dripton/Slugathon/wiki
8 stars 2 forks source link

Jenkins instance to do builds and run tests with coverage #151

Closed dripton closed 12 years ago

dripton commented 12 years ago

We need a Jenkins instance somewhere that builds every commit, then runs all the unit tests with:

py.test --cov slugathon --cov-report=term-missing

(This requires having pytest-cov installed.)

dripton commented 12 years ago

I have a local Jenkins instance with Git plugin, Cobertura coverage plugin working with pytest-cov, and Violations plugin working with pep8. Jenkins is also running pyflakes but there doesn't seem to be plugin support for it.

Jenkins is on my local box where nobody else can see it, and isn't even started at system boot yet.

dripton commented 12 years ago

Need to make the Jenkins build fail if pyflakes finds any errors.

dripton commented 12 years ago

Jenkins starts at boot now. I'm using /etc/local.d/jenkins.start on Gentoo

dripton commented 12 years ago

Jenkins now fails the build on build errors, failed unit tests, and pyflakes errors.