mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-30 19:57:42 +00:00
24 lines
497 B
Bash
24 lines
497 B
Bash
|
#!/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
|
||
|
sudo tox -e $TOXENV
|
||
|
else
|
||
|
fakeroot -u tox
|
||
|
fi
|