forked from mottosso/Qt.py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
32 lines (28 loc) · 790 Bytes
/
entrypoint.sh
File metadata and controls
32 lines (28 loc) · 790 Bytes
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
#!/bin/bash
# Exit with non-zero code if errors in script
set -e
# Start Xvfb
Xvfb :99 -screen 0 1024x768x16 2>/dev/null &
while ! ps aux | grep -q '[0]:00 Xvfb :99 -screen 0 1024x768x16'; do
echo "Waiting for Xvfb..."
sleep 1
done
printf "#\n# Running tests in Python ${PYTHON}\n"
export NOSETESTS_BINARY=nosetests${PYTHON}
printf "#\n# Testing implementation..\n"
python${PYTHON} -u run_tests.py
printf "#\n# Testing caveats..\n"
python${PYTHON} build_caveats.py
nosetests${PYTHON} \
--verbose \
--with-doctest \
--with-process-isolation \
test_caveats.py
printf "#\n# Testing examples..\n"
nosetests${PYTHON} \
--verbose \
--with-process-isolation \
--with-doctest \
--exe \
examples/*/*.py
printf Done