21 lines
464 B
Bash
21 lines
464 B
Bash
#!/bin/bash
|
|
|
|
if [[ $DOCKER ]]; then
|
|
# To build a fresh image:
|
|
# docker build -t img misc/docker/$DOCKER
|
|
# docker run --privileged -v $PWD:/outside img
|
|
|
|
docker run --privileged -v $PWD:/outside \
|
|
thecompiler/qutebrowser-manual:$DOCKER
|
|
else
|
|
args=()
|
|
[[ $TESTENV == docs ]] && args=('--no-authors')
|
|
|
|
tox -e $TESTENV -- "${args[@]}"
|
|
|
|
tox_exit=$?
|
|
if ((tox_exit != 0)); then
|
|
echo "tox exit status: $tox_exit"
|
|
fi
|
|
fi
|