-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.sh
executable file
·38 lines (32 loc) · 864 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
PLAT_X86_64="x86_64"
PYTHON_3_6="3.6"
PYTHON_3_7="3.7"
PYTHON_3_8="3.8"
PYTHON_3_9="3.9"
PLAT=$1
PYTHON=$2
WHEEL_DIR=${3:-wheelhouse}
if [ -z "$PLAT" ] || [ -z "$PYTHON" ]; then
echo "usage: $0 platform python-version"
echo "example: $0 $PLAT_X86_64 $PYTHON_3_6"
exit 1
fi
if [ "$PLAT" == "$PLAT_X86_64" ]; then
if [ "$PYTHON" == "$PYTHON_3_6" ]; then
PY="36"
elif [ "$PYTHON" == "$PYTHON_3_7" ]; then
PY="37"
elif [ "$PYTHON" == "$PYTHON_3_8" ]; then
PY="38"
elif [ "$PYTHON" == "$PYTHON_3_9" ]; then
PY="39"
else
echo "python $PYTHON is not supported for platform $PLAT"
exit 1
fi
WHEEL="$WHEEL_DIR/hbst*$PY*manylinux1_x86_64.whl" docker-compose -f test-compose.yml run linux_x86_64_python_$PY
else
echo "platform $PLAT is not supported"
exit 1
fi