summaryrefslogtreecommitdiff
path: root/ci/manylinux.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/manylinux.sh')
-rwxr-xr-xci/manylinux.sh19
1 files changed, 10 insertions, 9 deletions
diff --git a/ci/manylinux.sh b/ci/manylinux.sh
index 0cf6a5d..5743989 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!"