Commit ecfb27f4 authored by Matthew Brett's avatar Matthew Brett
Browse files

Move install run into common_utils

parent 1b069e81
...@@ -96,3 +96,10 @@ function install_wheel { ...@@ -96,3 +96,10 @@ function install_wheel {
pip install $(pip_opts) $@ \ pip install $(pip_opts) $@ \
$(python $MULTIBUILD_DIR/supported_wheels.py $wheelhouse/*.whl) $(python $MULTIBUILD_DIR/supported_wheels.py $wheelhouse/*.whl)
} }
function install_run {
# Depends on function `run_tests` defined in `config.sh`
install_wheel
mkdir tmp_for_test
(cd tmp_for_test && run_tests)
}
...@@ -14,5 +14,4 @@ cd /io ...@@ -14,5 +14,4 @@ cd /io
# It must define `run_tests`. # It must define `run_tests`.
source config.sh source config.sh
install_wheel install_run
run_tests
...@@ -18,13 +18,7 @@ function before_install { ...@@ -18,13 +18,7 @@ function before_install {
} }
# build_wheel function defined in common_utils (via osx_utils) # build_wheel function defined in common_utils (via osx_utils)
# install_run function defined in common_utils
function install_run {
# Depends on function `run_tests` defined in `config.sh`
install_wheel
mkdir tmp_for_test
(cd tmp_for_test && run_tests)
}
# Local configuration may define custom pre-build, source patching. # Local configuration may define custom pre-build, source patching.
# It can also overwrite the functions above. # It can also overwrite the functions above.
......
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