still works as before, only that now it requires tox to be available in the /home/clupo/.pyenv/plugins/pyenv-virtualenv/shims:/home/clupo/.pyenv/shims:/home/clupo/.pyenv/bin:/home/clupo/.pyenv/plugins/pyenv-virtualenv/bin:/home/clupo/.local/bin:/home/clupo/bin:/home/clupo/.cargo/bin:/home/clupo/Applications/node-v6.11.4-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin, else it will fail
29 lines
475 B
Bash
Executable File
29 lines
475 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# exit if any subcommand return non-zero status
|
|
set -e
|
|
|
|
# Choose python version
|
|
if test "x$1" = x-3; then
|
|
PYTHON=py3-nocov
|
|
shift
|
|
elif test "x$1" = x-2; then
|
|
PYTHON=py2-nocov
|
|
shift
|
|
fi
|
|
test "x$PYTHON" = x && PYTHON=py-nocov
|
|
|
|
# Find tests
|
|
FILTERS=
|
|
for arg in "$@"; do
|
|
test "x$FILTERS" != x && FILTERS="$FILTERS or "
|
|
FILTERS="$FILTERS$arg"
|
|
done
|
|
|
|
# Run tests
|
|
if [ -z "$FILTERS" ]; then
|
|
tox --develop -e $PYTHON
|
|
else
|
|
tox --develop -e $PYTHON -- -k "$FILTERS"
|
|
fi
|