travis: Fix macOS

This commit is contained in:
dylan araps 2017-09-12 08:40:22 +10:00
parent 7e8f7c2620
commit 50c6ba0205

View File

@ -1,15 +1,22 @@
language: python
python:
- "3.5"
- "3.6"
os:
- "linux"
- "osx"
matrix:
include:
- os: osx
language: generic
before_install:
- brew update
- brew install imagemagick
- brew install python3
- virtualenv env -p python3
- source env/bin/activate
- os: linux
python: 3.5
- os: linux
python: 3.6
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo brew install imagemagick; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y imagemagick; fi