2014-04-27 15:40:46 +04:00
|
|
|
language: python
|
2016-11-19 16:48:39 +03:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
python: 2.7
|
|
|
|
- os: linux
|
|
|
|
python: 3.3
|
|
|
|
- os: linux
|
|
|
|
python: 3.4
|
|
|
|
- os: linux
|
|
|
|
python: 3.5
|
|
|
|
- os: osx
|
|
|
|
language: generic
|
2016-11-19 17:58:55 +03:00
|
|
|
env: PYTHON_VERSION=3
|
2016-11-19 16:48:39 +03:00
|
|
|
|
2015-11-21 02:42:44 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- ttf-dejavu
|
2016-11-19 16:48:39 +03:00
|
|
|
|
|
|
|
before_install:
|
2016-11-19 16:53:38 +03:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3 cairo pango gdk-pixbuf libxml2 libxslt libffi; fi
|
2016-11-19 16:48:39 +03:00
|
|
|
|
2014-04-27 15:40:46 +04:00
|
|
|
install:
|
2016-11-19 17:51:03 +03:00
|
|
|
- pip$PYTHON_VERSION install --upgrade setuptools pytest flake8
|
|
|
|
- pip$PYTHON_VERSION install -e .
|
2014-04-27 15:40:46 +04:00
|
|
|
- mkdir -p ~/.fonts
|
2016-02-26 19:57:53 +03:00
|
|
|
- wget "https://github.com/Kozea/Ahem/blob/master/Ahem.ttf?raw=true" -O ~/.fonts/Ahem.ttf
|
2016-11-19 16:48:39 +03:00
|
|
|
|
2014-04-27 15:40:46 +04:00
|
|
|
script:
|
2016-11-19 17:51:03 +03:00
|
|
|
- python$PYTHON_VERSION -m pytest -s
|
|
|
|
- python$PYTHON_VERSION -m flake8 weasyprint
|