Skip to content

Commit 96f54c4

Browse files
committed
Replace Python version tests with shell script
Signed-off-by: Bert van Hall <bert.vanhall@gmx.de>
1 parent 161a7d8 commit 96f54c4

File tree

3 files changed

+24
-187
lines changed

3 files changed

+24
-187
lines changed

test-all-python.log

Lines changed: 0 additions & 34 deletions
This file was deleted.

test-all-python.py

Lines changed: 0 additions & 153 deletions
This file was deleted.

test-all-python.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/sh
2+
3+
TARGETS="3.5.10 3.6.12 3.7.9 3.8.1 3.9.0 pypy2.7-7.3.1 pypy3.5-7.0.0 pypy3.6-7.3.1"
4+
DIR=$(dirname "$(readlink -f "$0")")
5+
6+
_pyenv=$(command -v pyenv)
7+
[ -z "$_pyenv" ] && { echo "pyenv is missing on your system."; exit 1; }
8+
9+
_tox=$(command -v tox)
10+
[ -z "$_tox" ] && { echo "tox is missing on your system."; exit 1; }
11+
12+
cd "$DIR"
13+
14+
echo "Installing (if needed) Python versions: $TARGETS"
15+
for version in $TARGETS ; do
16+
$_pyenv install --skip-existing $version
17+
done
18+
19+
echo "Enabling Python versions from pyenv..."
20+
$_pyenv local $TARGETS
21+
22+
echo "Running tox..."
23+
$_tox
24+

0 commit comments

Comments
 (0)