2014-04-27 15:40:46 +04:00
|
|
|
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
|
2017-03-25 01:18:50 +03:00
|
|
|
- os: linux
|
|
|
|
python: 3.6
|
2019-01-06 01:39:19 +03:00
|
|
|
- dist: xenial
|
2019-01-06 01:36:34 +03:00
|
|
|
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
|
2016-11-19 16:53:38 +03:00
|
|
|
- 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
|
2018-03-05 03:47:49 +03:00
|
|
|
- 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
|
|
|
|
2014-04-27 15:40:46 +04:00
|
|
|
script:
|
2017-03-25 01:18:50 +03:00
|
|
|
- python$PYTHON_VERSION setup.py test
|