summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-10-26 08:02:01 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-10-26 08:02:01 -0400
commit6025d999e1f2d88dfcdaa169fc4eb0da7245756e (patch)
tree983a59b84717d1683f16a76cee4764ee8b159c26 /ci
parent261d0c06aeade503e9da4f8e6e522557d01dd298 (diff)
downloadpython-coveragepy-git-6025d999e1f2d88dfcdaa169fc4eb0da7245756e.tar.gz
Use the manylinux docker image for testing also
Diffstat (limited to 'ci')
-rwxr-xr-xci/manylinux.sh19
1 files changed, 10 insertions, 9 deletions
diff --git a/ci/manylinux.sh b/ci/manylinux.sh
index 0cf6a5d3..57439898 100755
--- a/ci/manylinux.sh
+++ b/ci/manylinux.sh
@@ -10,6 +10,7 @@
set -e -x
action=$1
+shift
if [[ $action == "build" ]]; then
# Compile wheels
@@ -27,19 +28,19 @@ if [[ $action == "build" ]]; then
done
elif [[ $action == "test" ]]; then
+ # Create "pythonX.Y" links
+ for PYBIN in /opt/python/*/bin/; do
+ PYNAME=$("$PYBIN/python" -c "import sys; print('python{0[0]}.{0[1]}'.format(sys.version_info))")
+ ln -sf "$PYBIN/$PYNAME" /usr/local/bin/$PYNAME
+ done
+
# Install packages and test
TOXBIN=/opt/python/cp27-cp27m/bin
"$TOXBIN/pip" install -r /io/requirements/ci.pip
- for PYBIN in /opt/python/*/bin/; do
- PYNAME=$("$PYBIN/python" -c "import sys; print('python{0[0]}.{0[1]}'.format(sys.version_info))")
- TOXENV=$("$PYBIN/python" -c "import sys; print('py{0[0]}{0[1]}'.format(sys.version_info))")
- ln -s "$PYBIN/$PYNAME" /usr/local/bin/$PYNAME
- "$TOXBIN/tox" -e $TOXENV
- rm -f /usr/local/bin/$PYNAME
- #"${PYBIN}/pip" install python-manylinux-demo --no-index -f /io/dist
- #(cd "$HOME"; "${PYBIN}/nosetests" pymanylinuxdemo)
- done
+ cd /io
+ TOXWORKDIR=.tox_linux "$TOXBIN/tox" "$@" || true
+ cd ~
else
echo "Need an action to perform!"