2015-12-12 18:09:57 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2016-12-25 18:09:10 +00:00
|
|
|
if [[ "$(uname -s)" == "Darwin" ]]; then
|
2016-04-11 01:52:49 +01:00
|
|
|
PYENV_ROOT="$HOME/.pyenv"
|
|
|
|
PATH="$PYENV_ROOT/bin:$PATH"
|
2015-12-12 18:09:57 +00:00
|
|
|
eval "$(pyenv init -)"
|
|
|
|
fi
|
2016-04-11 01:52:49 +01:00
|
|
|
|
2016-12-25 18:09:10 +00:00
|
|
|
# tox script may not be in the $PATH if we installed as --user
|
|
|
|
# so we run it as module
|
|
|
|
python -m tox
|