Properly test Python wheels in Travis. (#5749)

This commit is contained in:
Robert Nishihara
2019-09-21 18:03:10 -07:00
committed by GitHub
parent e00071721a
commit 1cfadf032e
5 changed files with 35 additions and 18 deletions
+2
View File
@@ -79,3 +79,5 @@ for ((i=0; i<${#PY_VERSIONS[@]}; ++i)); do
mv dist/*.whl ../.whl/
popd
done
git clean -f -f -x -d -e .whl -e $DOWNLOAD_DIR
+7
View File
@@ -1,5 +1,10 @@
#!/bin/bash
set -x
# Cause the script to exit if a single command fails.
set -e
cat << EOF > "/usr/bin/nproc"
#!/bin/bash
echo 10
@@ -48,6 +53,8 @@ for ((i=0; i<${#PYTHONS[@]}; ++i)); do
popd
done
git clean -f -f -x -d -e .whl
# Rename the wheels so that they can be uploaded to PyPI. TODO(rkn): This is a
# hack, we should use auditwheel instead.
pushd .whl