25 lines
703 B
YAML
25 lines
703 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 upgrade -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
|
|
# 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
|