travis_steps.sh 802 Bytes
Newer Older
1
#!/bin/bash
2
3
4
# Update submodules
git submodule update --init --recursive

5
WHEEL_SDIR=${WHEEL_SDIR:-wheelhouse}
Matthew Brett's avatar
Matthew Brett committed
6
MANYLINUX_URL=${MANYLINUX_URL:-https://nipy.bic.berkeley.edu/manylinux}
7
8
9
MULTIBUILD_DIR=$(dirname "${BASH_SOURCE[0]}")
# Get utilities common to OSX and Linux
source $MULTIBUILD_DIR/common_utils.sh
10

Matthew Brett's avatar
Matthew Brett committed
11
12
13
# Specify REPO_DIR to build from directory in this repository.
# Specify PKG_SPEC to build from pip requirement (e.g numpy==1.7.1)
# PKG_SPEC is hardly tested, please let us know of bugs.
14
15
16
if [ -z "$REPO_DIR$PKG_SPEC" ]; then
    echo "Must specify REPO_DIR or PKG_SPEC"
    exit 1
17
18
fi

19
20
21
22
23
24
if [ ! -d "$PWD/$WHEEL_SDIR" ]; then mkdir $PWD/WHEEL_SDIR; fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    source $MULTIBUILD_DIR/travis_osx_steps.sh
else
    source $MULTIBUILD_DIR/travis_linux_steps.sh
fi