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

41 lines
1.4 KiB
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:
2016-11-19 18:14:58 +03:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir -p ~/.fonts; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget "https://github.com/Kozea/Ahem/blob/master/Ahem.ttf?raw=true" -O ~/.fonts/Ahem.ttf; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget "https://github.com/Kozea/Ahem/blob/master/Ahem.ttf?raw=true" -O /Library/Fonts/Ahem.ttf; fi
2016-11-21 00:11:35 +03:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget "http://sourceforge.net/projects/dejavu/files/dejavu/2.37/dejavu-fonts-ttf-2.37.tar.bz2" -O /tmp/dejavu.tar.bz2; fi
2016-11-21 00:14:37 +03:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then tar xf /tmp/dejavu.tar.bz2 -C /tmp; fi
2016-11-21 00:11:35 +03:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cp /tmp/dejavu*/ttf/*.ttf /Library/Fonts; fi
- 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 .
2016-11-19 16:48:39 +03:00
script:
- python$PYTHON_VERSION -m pytest -s
- python$PYTHON_VERSION -m flake8 weasyprint