Skip to content

Commit

Permalink
ci: add more python versions (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Aug 21, 2020
1 parent 3639dee commit a90dea5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .travis/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a90dea5

Please sign in to comment.