| 1 |
#!/usr/bin/env bash |
| 2 |
|
| 3 |
if [ -z ${CI+x} ]; then |
| 4 |
echo "this script is only intended to run in CI" >&2 |
| 5 |
exit 1 |
| 6 |
fi |
| 7 |
|
| 8 |
set -e |
| 9 |
set -o pipefail |
| 10 |
set -u |
| 11 |
set -x |
| 12 |
|
| 13 |
ci/mingw-install.sh |
| 14 |
python3 -m pip install --requirement requirements.txt |
| 15 |
|
| 16 |
export PATH=$PATH:/c/Git/cmd |
| 17 |
|
| 18 |
# we need the absolute path since pytest cd somewhere else |
| 19 |
|
| 20 |
# we need the logical value of the directory for the PATH |
| 21 |
DIR_LABS="/c/Graphviz" |
| 22 |
|
| 23 |
# needed to find headers and libs at compile time. Must use absolute |
| 24 |
# Windows path for libs (why?) |
| 25 |
export CFLAGS="-I$DIR_LABS/include" |
| 26 |
export LDFLAGS="-L$DIR_LABS/lib" |
| 27 |
|
| 28 |
# make TCL packages visible for importing |
| 29 |
export TCLLIBPATH="$DIR_LABS/lib/graphviz/tcl" |
| 30 |
|
| 31 |
# needed for CMake discovery of Graphviz installation (see |
| 32 |
# ../tests/test_regression.py::test_2598) |
| 33 |
export graphviz_ROOT="$DIR_LABS" |
| 34 |
|
| 35 |
# needed to find e.g. libgvc.dll at run time. Windows does not use |
| 36 |
# LD_LIBRARY_PATH. Must be the logical directory |
| 37 |
export PATH="${PATH}:$DIR_LABS/bin" |
| 38 |
|
| 39 |
python3 -m pytest -m "not slow" ci/tests.py tests |