Shippable CI image for Python on Ubuntu 14.04. Available python versions:
- 2.7.6
- 3.3.6
- 3.4.0
- 3.5.0
You can use this image to run python builds on Shippable. Just update your
shippable.yml
file and add the build_image
directive. You should also
activate the appropriate virtual envrionment so your build runs against the
correct version of python. The python versions you specify in the python
directive in the YML will be available in the $PYTHON_VERSION
environment
variable. Here's a sample YML file to get you going:
language: python
python:
- 2.7
- 3.3
- 3.4
- 3.5
build_image: shippableimages/ubuntu1404_python
before_install:
# We're going to set up a virtualenv and activate the python version we want to use
- mkdir -p $HOME/bldve/
- virtualenv -p /usr/bin/python$PYTHON_VERSION $HOME/bldve/
- source $HOME/bldve/bin/activate
install:
- pip install -r requirements.txt
script:
- python test.py