Fix tests with macOS

This commit is contained in:
Guillaume Ayoub 2018-06-26 11:34:36 +02:00
parent 0299fdc50e
commit 9a5394f1d1
1 changed files with 2 additions and 4 deletions

View File

@ -28,11 +28,9 @@ before_install:
- 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
- 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
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then tar xf /tmp/dejavu.tar.bz2 -C /tmp; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cp /tmp/dejavu*/ttf/*.ttf /Library/Fonts; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap caskroom/fonts; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3 cairo pango gdk-pixbuf libffi; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install font-dejavu-sans cairo pango gdk-pixbuf libffi; fi
install:
# First line needed because of https://github.com/pypa/setuptools/pull/1089