travis_osx_steps.sh 711 Bytes
Newer Older
1
#!/bin/bash
2
# Wheel build, install, run test steps on OSX
3
4
5
set -e

# Get needed utilities
6
MULTIBUILD_DIR=$(dirname "${BASH_SOURCE[0]}")
Matthew Brett's avatar
Matthew Brett committed
7
source $MULTIBUILD_DIR/osx_utils.sh
8

9
10
# NB - config.sh sourced at end of this function.
# config.sh can override any function defined here.
11
12
13
14

function before_install {
    export CC=clang
    export CXX=clang++
Matthew Brett's avatar
Matthew Brett committed
15
    get_macpython_environment $TRAVIS_PYTHON_VERSION venv
16
17
18
19
    source venv/bin/activate
    pip install --upgrade pip wheel
}

20
# build_wheel function defined in common_utils (via osx_utils)
21
# install_run function defined in common_utils
22
23

# Local configuration may define custom pre-build, source patching.
24
25
# It can also overwrite the functions above.
source config.sh