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.3 KiB
YAML
Raw Normal View History

language: python
2016-11-19 16:48:39 +03:00
sudo: false
2017-03-25 03:08:35 +03:00
git:
submodules: false
2016-11-19 16:48:39 +03:00
matrix:
include:
- os: linux
python: 3.5
- os: linux
python: 3.6
- dist: xenial
python: 3.7
2016-11-19 16:48:39 +03:00
- 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:
2019-02-17 13:23:42 +03:00
# As setup.py doesn't use pip, setuptools is not updated before installing dependencies
2019-02-18 20:46:30 +03:00
- python$PYTHON_VERSION -m pip install --upgrade setuptools
2019-02-17 13:23:42 +03:00
2018-03-30 01:13:36 +03:00
# Pango 1.38+ is needed to make @font-face work, remove these two lines when it's available on Travis
2016-11-19 18:14:58 +03:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir -p ~/.fonts; fi
2018-03-30 01:13:36 +03:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget "https://github.com/Kozea/Ahem/blob/master/Ahem.ttf?raw=true" -O ~/.fonts/Ahem.ttf; fi
2016-11-19 18:14:58 +03:00
2018-03-30 01:13:36 +03:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap caskroom/fonts; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
2018-10-26 17:04:46 +03:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew pin numpy gdal postgis; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python; fi
2018-03-30 01:22:28 +03:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install font-dejavu-sans; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cairo pango gdk-pixbuf libffi; fi
2016-11-19 16:48:39 +03:00
script:
- python$PYTHON_VERSION setup.py test