-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest-wheels.sh
executable file
·50 lines (36 loc) · 1.04 KB
/
test-wheels.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
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#
# Test wheels in given directory.
# Should preferably be run on OSX and requires Docker (for Linux tests).
# Must be run from the top-level project directory.
set -e
if [[ -z $1 ]]; then
echo "Usage: $0 <wheel-directory>"
exit 1
fi
if [[ ! -f tools/$(basename $0) ]]; then
echo "Needs to be run from the top-level project directory"
exit 1
fi
set -u
wheeldir="$1"
if [[ ! -d $wheeldir ]]; then
echo "Wheel directory $wheeldir does not exist"
exit 1
fi
echo "##################################"
echo "#### Testing packages locally ####"
echo "#### $wheeldir ####"
echo "##################################"
echo "# Smoke testing locally"
tools/smoketest.sh "$wheeldir"
if which docker ; then
echo "# Smoke testing on many linux distros"
tools/test-manylinux.sh "$wheeldir"
else
echo "# Not smoke-testing on many linux distros: docker not available"
fi
echo "##################################"
echo "#### Tests passed for ####"
echo "#### $wheeldir ####"
echo "##################################"