17 lines
286 B
Bash
Executable File
17 lines
286 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
if [[ "$(uname -s)" == "Darwin" ]]; then
|
|
eval "$(pyenv init -)"
|
|
else
|
|
if [[ "${TOXENV}" == "pypy" ]]; then
|
|
PYENV_ROOT="$HOME/.pyenv"
|
|
PATH="$PYENV_ROOT/bin:$PATH"
|
|
eval "$(pyenv init -)"
|
|
fi
|
|
fi
|
|
source ~/.venv/bin/activate
|
|
tox
|