diff options
author | John Hu <hszqqq12@gmail.com> | 2018-09-03 16:51:29 +0800 |
---|---|---|
committer | John Hu <hszqqq12@gmail.com> | 2018-09-03 18:04:28 +0800 |
commit | 57ea0c5d23a6def78f35c039fb0b561bff3aaf61 (patch) | |
tree | 973964b84176e60f00d216419fa4dd4e278f68b4 | |
parent | 543b4232813d3be2231124d27f7ae9b95be1beb6 (diff) | |
download | simplejson-57ea0c5d23a6def78f35c039fb0b561bff3aaf61.tar.gz |
Build manylinux1 wheels with cibuildwheel 0.9.4
-rw-r--r-- | .travis.yml | 6 | ||||
-rwxr-xr-x | .travis/install.sh | 4 | ||||
-rwxr-xr-x | .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 |