fix travis issues
MODIFY
.travis.yml
.travis.yml
@@ -11,7 +11,7 @@ install:
- pip install pytest flake8 check-manifest Cython ujson
script:
- ./run-tests.sh
- - docker run --rm -v "$(pwd):/data" quay.io/pypa/manylinux1_x86_64 /data/.travis_build_wheel.sh
+ - docker run --rm -v "$(pwd):/data" quay.io/pypa/manylinux1_x86_64 "/data/.travis_build_wheel.sh $TRAVIS_PYTHON_VERSION"
deploy:
provider: releases
api_key:
@@ -20,4 +20,4 @@ deploy:
file: 'dist/fastavro-*.whl'
skip_cleanup: true
on:
- tags
+ tags: true

MODIFY
.travis_build_wheel.sh
.travis_build_wheel.sh
#!/bin/bash
cd `dirname $0`
+TRAVIS_PYTHON_VERSION=$1
-for PYBIN in /opt/python/*/bin; do
- "${PYBIN}/pip" install cython
- "${PYBIN}/python" setup.py bdist_wheel
-done
+"/opt/python/$TRAVIS_PYTHON_VERSION/pip" install cython
+"/opt/python/$TRAVIS_PYTHON_VERSION/python" setup.py bdist_wheel

fix travis issues