Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
319c34a2
"vscode:/vscode.git/clone" did not exist on "fb44b646b5700552ea3db0fc7968d545a5d7bd2c"
Commit
319c34a2
authored
Jul 04, 2016
by
Matthew Brett
Browse files
Move get_platform into common_utils
parent
962f6838
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
common_utils.sh
common_utils.sh
+5
-0
tests/test_common_utils.sh
tests/test_common_utils.sh
+3
-0
tests/test_manylinux_utils.sh
tests/test_manylinux_utils.sh
+0
-2
No files found.
common_utils.sh
View file @
319c34a2
...
@@ -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
#
#
...
...
tests/test_common_utils.sh
View file @
319c34a2
...
@@ -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/test_manylinux_utils.sh
View file @
319c34a2
# 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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment