git @ Cat's Eye Technologies Eightebed / master
Test w/either Python 2, or 3, or both, depending on what's installed. Chris Pressey a month ago
1 changed file(s) with 24 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
00 #!/bin/sh -x
11
2 python2 src/8ebed2c.py -t || exit 1
3 python3 src/8ebed2c.py -t || exit 1
2 if [ "x$PYTHON" != "x" ]; then
3 if command -v "$PYTHON" > /dev/null 2>&1; then
4 $PYTHON src/8ebed2c.py -t || exit 1
5 else
6 echo "$PYTHON not found on executable search path. Aborting."
7 exit 1
8 fi
9 else
10 MISSING=""
11 if command -v python2 > /dev/null 2>&1; then
12 python2 src/8ebed2c.py -t || exit 1
13 else
14 MISSING="${MISSING}2"
15 fi
16 if command -v python3 > /dev/null 2>&1; then
17 python3 src/8ebed2c.py -t || exit 1
18 else
19 MISSING="${MISSING}3"
20 fi
21 if [ "x${MISSING}" = "x23" ]; then
22 echo "Neither python2 nor python3 found on executable search path. Aborting."
23 exit 1
24 fi
25 fi