AX Semantics Developer Blog
  • Home
  • Categories
  • Tags
  • Archives

Python 3 support in Codeship

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
comments powered by Disqus

  • « Markdown syntax highlighting for vim
  • CAcert and wildcards »

Published

Nov 7, 2014

Category

Techstack

Tags

  • codeship 1
  • continous delivery 1
  • toolchain 1
  • AX Semantics Developer Blog - Technical stuff and learnings we had while developing the AX environment
  • Powered by Pelican. Theme: Elegant by Talha Mansoor