| 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/test_coverage.py --init |
| 14 |
pushd build |
| 15 |
# Use GVBINDIR to specify where to generate and load config8 |
| 16 |
# since ctest sets LD_LIBRARY_PATH to point to all the |
| 17 |
# locations where the libs reside before cpack copies them to |
| 18 |
# the install directory. Without this Graphviz tries to use |
| 19 |
# the directory lib/gvc/graphviz which does not exist. |
| 20 |
export GVBINDIR=$(pwd)/plugin/dot_layout |
| 21 |
cmd/dot/dot -v -c |
| 22 |
ctest --output-on-failure |
| 23 |
unset GVBINDIR |
| 24 |
popd |
| 25 |
ci/test-job-script.sh |
| 26 |
ci/test_coverage.py --analyze |