#!/bin/bash # Wheel build, install, run test steps on OSX set -e # Get needed utilities MULTIBUILD_DIR=$(dirname "${BASH_SOURCE[0]}") source $MULTIBUILD_DIR/osx_utils.sh # NB - config.sh sourced at end of this function. # config.sh can override any function defined here. function before_install { export CC=clang export CXX=clang++ get_macpython_environment $TRAVIS_PYTHON_VERSION venv source venv/bin/activate pip install --upgrade pip wheel } # build_wheel function defined in common_utils (via osx_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. # It can also overwrite the functions above. source config.sh