travis_steps.sh 648 Bytes
Newer Older
1
#!/bin/bash
Matthew Brett's avatar
Matthew Brett committed
2
3
4
5
6
7
# Despite the name, this file is not specific to Travis-CI.
# It sets up the local environment for wheel building and testing.
# For Mac, configure xcode, and set up before_install and other
# functions to wrap builds.
# For linux, set up before_install to work in virtualenv, and set up wrapping
# to run build and tests in docker containers.
8

9
WHEEL_SDIR=${WHEEL_SDIR:-wheelhouse}
Matthew Brett's avatar
Matthew Brett committed
10

11
MULTIBUILD_DIR=$(dirname "${BASH_SOURCE[0]}")
12

Matthew Brett's avatar
Matthew Brett committed
13
if [ ! -d "$PWD/$WHEEL_SDIR" ]; then mkdir $PWD/$WHEEL_SDIR; fi
14
if [[ "$(uname)" == "Darwin" ]]; then
15
16
17
18
    source $MULTIBUILD_DIR/travis_osx_steps.sh
else
    source $MULTIBUILD_DIR/travis_linux_steps.sh
fi