diff --git a/.travis.yml b/.travis.yml index bc6765c..4f3838d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,10 @@ language: python -python: 3.5 +python: + - '2.7' + - '3.5' + - '3.6' + - '3.7' + - '3.8' services: docker sudo: required cache: @@ -8,17 +13,14 @@ cache: - $HOME/.cache/pip - $HOME/docker env: - - TOX_ENV=py35 PYENV=cp35 - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 - - TOX_ENV=py27 PYENV=cp27 - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 + - PLAT=manylinux2010_x86_64 install: - if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi - - docker pull $DOCKER_IMAGE + - docker pull quay.io/pypa/$PLAT - pip install -U pip setuptools - pip install Cython tox script: - - tox -e $TOX_ENV && mkdir dist && docker run --rm -v `pwd`:/io $DOCKER_IMAGE /io/.travis/build-wheels.sh greenify $PYENV + - tox -e py${TRAVIS_PYTHON_VERSION/./} && mkdir dist && docker run --rm -e PLAT=$PLAT -v `pwd`:/io quay.io/pypa/$PLAT /io/.travis/build-wheels.sh greenify cp${TRAVIS_PYTHON_VERSION/./} before_cache: - mkdir -p $HOME/docker && docker images -a --filter='dangling=false' --format '{{.Repository}}:{{.Tag}} {{.ID}}' | xargs -n 2 -t sh -c 'test -e $HOME/docker/$1.tar.gz || docker save $0 | gzip -2 > $HOME/docker/$1.tar.gz' deploy: diff --git a/.travis/build-wheels.sh b/.travis/build-wheels.sh index 58336f8..5c56f8f 100755 --- a/.travis/build-wheels.sh +++ b/.travis/build-wheels.sh @@ -14,5 +14,5 @@ done # Bundle external shared libraries into the wheels for whl in wheelhouse/${PACKAGE}*.whl; do - auditwheel repair $whl -w /io/dist/ + auditwheel repair $whl --plat $PLAT -w /io/dist/ done