]>
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 | |
38a3b7c0 | 18 | pip install -r requirements.txt | cat |
1a152698 | 19 | |
c6c3c165 PL |
20 | if [ -z "${SDIG}" ]; then |
21 | export SDIG=$(type -P sdig) | |
22 | fi | |
0567c609 | 23 | |
1a152698 | 24 | set -e |
9091cf89 PL |
25 | if [ "${PDNS_DEBUG}" = "YES" ]; then |
26 | set -x | |
27 | fi | |
7c876c30 | 28 | exec ./runtests.py "$@" |