use terrify for mac builds
@@ -14,22 +14,15 @@ matrix:
- python: 3.6
- python: 3.5
- python: 2.7
+ # It's important to use 'macpython' builds to get the least
+ # restrictive wheel tag. It's also important to avoid
+ # 'homebrew 3' because it floats instead of being a specific version.
- os: osx
language: generic
- before_install:
- - brew update
- - brew upgrade python
- - brew install python2
- - pip install virtualenv
- - python2 -m virtualenv env
- - source env/bin/activate
+ env: TERRYFY_PYTHON='macpython 2.7'
- os: osx
language: generic
- before_install:
- - brew update
- - brew upgrade python
- - python3 -m venv env
- - source env/bin/activate
+ env: TERRYFY_PYTHON='macpython 3.6.1'
- services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
@@ -54,6 +47,10 @@ matrix:
after_success:
- pip install twine && twine upload -u datamade.wheelbuilder -p $PYPIPASSWORD wheelhouse/*
- exit 0
+before_install:
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then git clone https://github.com/MacPython/terryfy; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source terryfy/travis_tools.sh; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then get_python_environment $TERRYFY_PYTHON venv; fi
install:
- pip install --upgrade pip
- pip install --upgrade -r requirements.txt
