wercker.yml
box: python:2.7-slim
dev:
steps:
# A step that sets up the python virtual environment
- virtualenv:
name: setup virtual environment
# Build definition
build:
# The steps that will be executed on build
steps:
- script:
name: install apt packages
code: |
apt-get update --fix-missing
apt-get -qq -y install build-essential python-dev python-setuptools libatlas-dev\
gfortran libblas-dev liblapack-dev libatlas-base-dev \
libfreetype6-dev libpng12-dev libffi-dev libssl-dev \
libxml2-dev libxslt-dev python-lxml
# A step that executes `pip install` command
- pip-install:
requirements_file: "requirements.txt"
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
- script:
name: python unit test
code: |
export PYTHONPATH=$PWD/dmining:$PYTHONPATH
nosetests . --with-coverage --cover-package=. --cover-html --cover-erase -v