Meet Jenkins
Deploying an application to JBOSS 7 straight from jenkins works as follows:
<plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId> <version>7.1.1.Final</version> <configuration> <username>user</username> <password>pass</password> </configuration> </plugin>
Python Builds should be started from clean environment. Problem: Building large packages is slow and error-prone (numpy…) That's why we pre-package:
On python builds:
.pip/pip.conf
[global] download-cache = /homedir/.pip/cache find-links = /homedir/.pip/packages [install] use-wheel = yes [wheel] wheel-dir = /homedir/.pip/packages
Create dirs.
Execute:
pip install wheel pip wheel numpy pip wheel scipy (install dependencies first) etc.
Packages will be created an cached.
pip install wheel pip install flake8 flake8-docstrings nose coverage mccabe numpy mock pint pandas scipy python ./setup.py build python ./setup.py nosetests --with-coverage --with-xunit python -m coverage xml --include=<project-namespace>* flake8 --max-complexity=10 --format=pylint <project-namespace> | tee pylint.out
pip install wheel pip install flake8 flake8-docstrings nose coverage mccabe numpy mock pint pandas scipy python ./setup.py build python ./setup.py nosetests --with-coverage --with-xunit python -m coverage xml --include=<project-namespace>* flake8 --max-complexity=10 --format=pylint <project-namespace> | tee pylint.out