Commit 319c34a2 authored by Matthew Brett's avatar Matthew Brett
Browse files

Move get_platform into common_utils

parent 962f6838
......@@ -157,6 +157,11 @@ function pip_opts {
[ -n "$MANYLINUX_URL" ] && echo "--find-links $MANYLINUX_URL"
}
function get_platform {
# Report platform as given by uname
python -c 'import platform; print(platform.uname()[4])'
}
function install_wheel {
# Install test dependencies and built wheel
#
......
......@@ -23,3 +23,6 @@ touch tmp_dir/afile
rm_mkdir tmp_dir
[ -e tmp_dir/afile ] && ingest "tmp_dir/afile should have been deleted"
rmdir tmp_dir
# On Linux docker containers in travis, can only be x86_64 or i686
[ "$(get_platform)" == x86_64 ] || [ "$(get_platform)" == i686 ] || exit 1
# Tests for manylinux utils
[ "$(get_platform)" == x86_64 ] || [ "$(get_platform)" == i686 ] || exit 1
# cpython path calculator
[ "$(cpython_path 2.6)" == "/opt/python/cp26-cp26mu" ] || ingest "cp 2.6"
[ "$(cpython_path 2.6 32)" == "/opt/python/cp26-cp26mu" ] || ingest "cp 2.6 32"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment