"vscode:/vscode.git/clone" did not exist on "fb44b646b5700552ea3db0fc7968d545a5d7bd2c"
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 { ...@@ -157,6 +157,11 @@ function pip_opts {
[ -n "$MANYLINUX_URL" ] && echo "--find-links $MANYLINUX_URL" [ -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 { function install_wheel {
# Install test dependencies and built wheel # Install test dependencies and built wheel
# #
......
...@@ -23,3 +23,6 @@ touch tmp_dir/afile ...@@ -23,3 +23,6 @@ touch tmp_dir/afile
rm_mkdir tmp_dir rm_mkdir tmp_dir
[ -e tmp_dir/afile ] && ingest "tmp_dir/afile should have been deleted" [ -e tmp_dir/afile ] && ingest "tmp_dir/afile should have been deleted"
rmdir tmp_dir 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 # Tests for manylinux utils
[ "$(get_platform)" == x86_64 ] || [ "$(get_platform)" == i686 ] || exit 1
# cpython path calculator # cpython path calculator
[ "$(cpython_path 2.6)" == "/opt/python/cp26-cp26mu" ] || ingest "cp 2.6" [ "$(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" [ "$(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