26 lines
746 B
YAML
26 lines
746 B
YAML
language: python
|
|
python:
|
|
- "2.7"
|
|
- "3.3"
|
|
# whitelist
|
|
branches:
|
|
only:
|
|
- master
|
|
# install libjpeg-dev for PIL to handle JPEGs
|
|
before_install:
|
|
- sudo apt-get update -q -y
|
|
- sudo apt-get install -q -y libjpeg-dev
|
|
- sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
|
|
- sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
|
|
- sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
|
|
# disabled upgrade: it gives build errors
|
|
# - sudo apt-get upgrade -q -y
|
|
# command to install dependencies
|
|
install:
|
|
- pip install -r requirements.txt --use-mirrors
|
|
- scripts/install_pil.sh
|
|
- pip install pytest-xdist --use-mirrors
|
|
# command to run tests
|
|
script: make test PYTESTOPTS="--tb=short -n10"
|
|
#notifications:
|
|
# email: false
|