2015-08-07 13:17:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
if [[ "$(uname -s)" == "Darwin" ]]; then
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
if [[ "${OPENSSL}" != "0.9.8" ]]; then
|
|
|
|
# set our flags to use homebrew openssl
|
|
|
|
export ARCHFLAGS="-arch x86_64"
|
|
|
|
export LDFLAGS="-L/usr/local/opt/openssl/lib"
|
|
|
|
export CFLAGS="-I/usr/local/opt/openssl/include"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
source ~/.venv/bin/activate
|
|
|
|
|
|
|
|
if [[ "$(uname -s)" == "Darwin" ]]; then
|
|
|
|
# no fakeroot on OS X
|
2015-10-11 15:41:25 +00:00
|
|
|
sudo tox -e $TOXENV -r
|
2015-08-07 13:17:07 +00:00
|
|
|
else
|
2015-10-11 15:41:25 +00:00
|
|
|
fakeroot -u tox -r
|
2015-08-07 13:17:07 +00:00
|
|
|
fi
|