dimagi/logistics — pull request #54 by mlavin (2012-12-20 20:31:00+00:00)
Title: Jenkins Setup

This makes some minor changes to enable easily running on the Jenkins CI server (FB45940). It conditionally adds the `auditcare`/`couchlog` urls so they can be remove when running the tests. This removes the requirement of CouchDB for running the tests. There is also a stub for the local settings which is used to run the tests. The Jenkins configuration is set to wait for Github to notify of a commit but I'm not sure if that webhook is enabled on the repo. It's also currently pointing to build this branch but when merged I'll update it to use ghana-dev.

Below is the script that runs the tests on CI
```
#!/bin/bash

cd $WORKSPACE
virtualenv -q env
source $WORKSPACE/env/bin/activate
export PIP_DOWNLOAD_CACHE=/tmp/.pip_download_cache
$WORKSPACE/env/bin/pip install -r pip-requires.txt
cd $WORKSPACE/logistics_project
echo "from logistics_project.deployments.ghana.settings_ci import *" > localsettings.py
$WORKSPACE/env/bin/python manage.py test apps.ewsghana.tests --noinput
```

A few of the notifications tests were broken by subsequent changes/fixes to the queries and they have been updated so that they all pass.