1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
# Define custom utilities
# Test for OSX with [ -n "$IS_OSX" ]
function pre_build {
# Any stuff that you need to do before you start building the wheels
# Runs in the root directory of this repository.
:
}
function run_tests {
# The function is called from an empty temporary directory.
cd ..
# Get absolute path to the pre-compiled wheel
wheelhouse=$(abspath wheelhouse)
wheel=$(ls ${wheelhouse}/openstep_plist*.whl | head -n 1)
if [ ! -e "${wheel}" ]; then
echo "error: can't find wheel in ${wheelhouse} folder" 1>&2
exit 1
fi
# select tox environment based on the current python version
# E.g.: '2.7' -> 'py27'
TOXENV="py${MB_PYTHON_VERSION//\./}-nocov"
# Install pre-compiled wheel and run tests against it
tox --installpkg "${wheel}" -e "${TOXENV}"
}
|