Skip to content

Commit

Permalink
update travis to build mac wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbelden committed Jul 25, 2018
1 parent 833409d commit 69bfdf4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 6 deletions.
42 changes: 41 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
language: python
sudo: required
before_install:
- |
if [[ $PYTHON && "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install openssl readline;
brew outdated pyenv || brew upgrade pyenv;
brew install pyenv-virtualenv;
pyenv install $PYTHON;
export PYENV_VERSION=$PYTHON;
export PATH="/Users/travis/.pyenv/shims:${PATH}";
pyenv-virtualenv venv;
source venv/bin/activate;
python --version;
fi;
install:
- pip install -r developer_requirements.txt
script:
- ./run-tests.sh
- codecov
- docker run --rm -v "$(pwd):/data" quay.io/pypa/manylinux1_x86_64 bash -c "/data/.travis_build_wheel.sh $TRAVIS_PYTHON_VERSION"
after_success:
- if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then
FASTAVRO_USE_CYTHON=1 python setup.py bdist_wheel;
fi;
- if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "linux" && $TRAVIS_PYTHON_VERSION != *"pypy"* ]]; then
docker run --rm -v "$(pwd):/data" quay.io/pypa/manylinux1_x86_64 bash -c "/data/.travis_build_wheel.sh $TRAVIS_PYTHON_VERSION";
fi;
deploy:
provider: releases
api_key:
Expand Down Expand Up @@ -33,3 +53,23 @@ matrix:
python: pypy
- dist: trusty
python: pypy3
- os: osx
language: generic
env:
- PYTHON='2.7.15'
- os: osx
language: generic
env:
- PYTHON='3.4.8'
- os: osx
language: generic
env:
- PYTHON='3.5.5'
- os: osx
language: generic
env:
- PYTHON='3.6.6'
- os: osx
language: generic
env:
- PYTHON='3.7.0'
5 changes: 0 additions & 5 deletions .travis_build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

cd `dirname $0`

# Don't do anything on pypy
if [[ ${1} == *"pypy"* ]]; then
exit 0
fi

# The version comes in as something like 3.6, but we need it to be 36 for the
# path in the container so we remove the period
TRAVIS_PYTHON_VERSION=$1
Expand Down

0 comments on commit 69bfdf4

Please sign in to comment.