]>
Commit | Line | Data |
---|---|---|
1a152698 CH |
1 | #!/usr/bin/env bash |
2 | ||
3 | if [ ! -d .venv ]; then | |
1bbeda0d CH |
4 | if [ -z "$PYTHON" ]; then |
5 | if [ ! -z "$(python3 --version | egrep '^Python 3.[6789]' 2>/dev/null)" ]; then | |
6 | # found python3.6 or better | |
7 | PYTHON=python3 | |
8 | else | |
9 | # until we have better Linux distribution detection. | |
10 | PYTHON=python2 | |
11 | fi | |
12 | fi | |
13 | ||
14 | virtualenv -p ${PYTHON} .venv | |
1a152698 CH |
15 | fi |
16 | . .venv/bin/activate | |
17 | python -V | |
18 | pip install -r requirements.txt | |
19 | ||
0567c609 CH |
20 | export SDIG=$(type -P sdig) |
21 | ||
1a152698 | 22 | set -e |
9091cf89 PL |
23 | if [ "${PDNS_DEBUG}" = "YES" ]; then |
24 | set -x | |
25 | fi | |
7c876c30 | 26 | exec ./runtests.py "$@" |