1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 16:37:47 +03:00
WeasyPrint/.travis.yml

36 lines
815 B
YAML
Raw Normal View History

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:
- 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
install:
- pip$PYTHON_VERSION install --upgrade setuptools pytest flake8
- pip$PYTHON_VERSION install -e .
- mkdir -p ~/.fonts
- wget "https://github.com/Kozea/Ahem/blob/master/Ahem.ttf?raw=true" -O ~/.fonts/Ahem.ttf
2016-11-19 16:48:39 +03:00
script:
- python$PYTHON_VERSION -m pytest -s
- python$PYTHON_VERSION -m flake8 weasyprint