From 57ea0c5d23a6def78f35c039fb0b561bff3aaf61 Mon Sep 17 00:00:00 2001 From: John Hu Date: Mon, 3 Sep 2018 16:51:29 +0800 Subject: Build manylinux1 wheels with cibuildwheel 0.9.4 --- .travis.yml | 6 ++++-- .travis/install.sh | 4 ++++ .travis/run.sh | 4 ++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 61c7fa0..cfd72b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,9 +27,11 @@ matrix: python: '3.5' - os: linux dist: trusty - sudo: false + sudo: required + services: + - docker python: '3.6' - env: BUILD_SDIST=true + env: BUILD_SDIST=true BUILD_WHEEL=true - os: linux sudo: false python: pypy diff --git a/.travis/install.sh b/.travis/install.sh index 5b02cbc..cf056c9 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -21,3 +21,7 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then pyenv install -s $PYENV_VERSION pip install wheel fi + +if [[ $BUILD_WHEEL == 'true' ]]; then + pip install wheel cibuildwheel==0.9.4 +fi diff --git a/.travis/run.sh b/.travis/run.sh index 6fa6b73..c3fa89c 100755 --- a/.travis/run.sh +++ b/.travis/run.sh @@ -17,6 +17,10 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then python setup.py bdist_wheel fi +if [[ $BUILD_WHEEL == 'true' ]]; then + cibuildwheel --output-dir dist +fi + if [[ $BUILD_SDIST == 'true' ]]; then python setup.py sdist fi -- cgit v1.2.1