ci: Actually build linux wheels on all release Python versions

This commit is contained in:
Elvis Pranskevichus 2017-01-01 21:17:41 -05:00
parent e3f5cc794a
commit 2d0b427920
1 changed files with 15 additions and 21 deletions

View File

@ -37,18 +37,11 @@ _upload_wheels() {
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
ML_PYTHON_VERSION=$(python3 -c "import sys; \ for pyver in ${RELEASE_PYTHON_VERSIONS}; do
print('cp{maj}{min}-cp{maj}{min}m'.format( \ ML_PYTHON_VERSION=$(python3 -c \
maj=sys.version_info.major, min=sys.version_info.minor))") "print('cp{maj}{min}-cp{maj}{min}m'.format( \
maj='${pyver}'.split('.')[0], \
PYTHON_VERSION=$(python3 -c "import sys; \ min='${pyver}'.split('.')[1]))")
print('{maj}.{min}'.format( \
maj=sys.version_info.major, min=sys.version_info.minor))")
if [[ "${RELEASE_PYTHON_VERSIONS}" != *"${PYTHON_VERSION}"* ]]; then
echo "Skipping release on Python ${PYTHON_VERSION}."
exit 0
fi
for arch in x86_64 i686; do for arch in x86_64 i686; do
ML_IMAGE="quay.io/pypa/manylinux1_${arch}" ML_IMAGE="quay.io/pypa/manylinux1_${arch}"
@ -61,6 +54,7 @@ if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
_upload_wheels _upload_wheels
done done
done
elif [ "${TRAVIS_OS_NAME}" == "osx" ]; then elif [ "${TRAVIS_OS_NAME}" == "osx" ]; then
make -C "${_root}" make -C "${_root}"