-
Notifications
You must be signed in to change notification settings - Fork 2
Jenkins
I currently have a local Jenkins setup for Slugathon on my home network. I’d like to eventually relocate it to The Cloud™, but that can wait.
There are two nodes, the master, running on a Gentoo Linux box, and a Windows slave, running on an old laptop with Windows XP. Once I manage to get PyInstaller working on Mac OS, I’ll need a Mac slave as well.
Jenkins is the latest stable version, currently 1.446. Jenkins plugins used include Git, Violations, and Cobertura. Dependencies on the Master include py.test, pytest-cov, and virtualenv.
Node: Master
Labels: linux
Slave: vito
Labels: windows
Job: Slugathon
Restrict where this project can be run: Label Expression: linux
Source Code Management: Git Repositories URL http://github.com/dripton/Slugathon.git
Repository browser: githubweb URL https://github.com/dripton/Slugathon/
Build Triggers Poll SCM Schedule * * * * *
Build
Execute shell
python -m virtualenv —distribute —system-site-packages /tmp/sjvenv
source /tmp/sjvenv/bin/activate
python setup.py build || exit 1
python setup.py install
python -m py.test -v —junitxml junit.xml —cov slugathon —cov-report=xml slugathon/test || exit 1
pyflakes . | awk -F\: ‘{printf “%s:%s: [E]%s\n”, $1, $2, $3}’ > pyflakes.out
pep8 -r . > pep8.out
Post-build Actions
Publish Cobertura Coverage Report **/coverage.xml
Public JUnit test result report **/junit.xml
Report Violations pep8 0 999 999 **/pep8.out pylint 0 999 999 **/pyflakes.out
Job: Slugathon_Windows
Restrict where this project can be run: windows
Git repositories: http://github.com/dripton/Slugathon.git
Build Triggers: Poll SCM * * * * *
Execute Windows batch command
python setup.py install
python \pyinstaller\pyinstaller.py slugathon.spec
python \bin\upload-exe-to-github USERNAME PASSWORD
Archive the artifacts **/slugathon.exe