/ubuntu1204_python

Shippable CI image for Python on Ubuntu 12.04

Primary LanguageShellMIT LicenseMIT

ubuntu1204_python

Shippable CI image for Python on Ubuntu 12.04. Available python versions:

  1. 2.7.3
  2. 3.3.5
  3. 3.4.1

How to use

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

build_image: shippableimages/ubuntu1204_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