Because of our (religious) belief in continous delivery, and fighting the not-invented-here syndrome, we are using codeship as a CI-Tool for our python/django applications.
We hat to try out different configurations, to get codeship running our django tests correctly and using Python 3 (instead of Python 2.7 default).
Go to Codeship -> Project Settings and modify if like this:
Config Section: "Modify your Setup Commands"
virtualenv -p `which python3` ~/python3_venv
source ~/python3_venv/bin/activate
pip install -r requirements/test.txt
# Sync your DB for django projects (Django 1.7)
python ./APPNAME/manage.py migrate --noinput
Config Section: "Modify your Test Commands"
PYTHONPATH=$PWD/APPNAME py.test
Tell us what you think about this. Is something unclear? Do you have questions or ideas? Leave your comments below.
comments powered by Disqus