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

59 lines
2.2 KiB
YAML
Raw Normal View History

language: python
env: PYTHON=python
2016-11-19 16:48:39 +03:00
2017-03-25 03:08:35 +03:00
git:
submodules: false
2020-03-22 13:09:09 +03:00
jobs:
2016-11-19 16:48:39 +03:00
include:
- os: linux
python: 3.5
- os: linux
python: 3.6
2019-12-18 03:09:25 +03:00
- dist: bionic
python: 3.7
2019-11-07 12:49:52 +03:00
- dist: bionic
python: 3.8
2016-11-19 16:48:39 +03:00
- os: osx
language: generic
env:
- HOMEBREW_NO_AUTO_UPDATE=1
- PYTHON=python3
- os: windows
# Windows doesn't support python or even generic language
language: cpp
2019-11-07 12:45:45 +03:00
env: PYTHON=/c/Python38/python
2019-04-12 17:14:25 +03:00
allow_failures:
- os: windows
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" == "windows" ]]; then export "PATH=$PATH;C:\msys64\mingw64\bin"; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install -y python dejavufonts; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then wget "http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20180531.tar.xz"; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then 7z e msys2-base-x86_64-20180531.tar.xz; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then 7z x -y msys2-base-x86_64-20180531.tar -oc:\\; fi
# We need powershell because Travis' bash and MSYS2's bash rely on conflicting libraries
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then powershell "C:\msys64\usr\bin\bash -lc 'pacman -S mingw-w64-x86_64-gtk3 --noconfirm'"; fi
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
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/cask-fonts; 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
# As setup.py doesn't use pip, setuptools is not updated before installing dependencies
- $PYTHON -m pip install --upgrade pip setuptools
# Upgrade cffi to avoid errors while installing cairocffi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then $PYTHON -m pip install --upgrade cffi; fi
script:
- $PYTHON setup.py test