blob: 0bc723b7f5f14bd29cf9e79cefc18d734a2e467d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
set -ev
which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if available
if [ "$BUILD_MODE" = "coverage" ]; then
GCOV="/usr/bin/gcov-4.8"
/tmp/usr/bin/lcov --gcov-tool "$GCOV" --directory . --capture --output-file $(pwd)/coverage.info.in
/tmp/usr/bin/lcov --gcov-tool "$GCOV" --remove $(pwd)/coverage.info.in 'tests/*' '/usr/*' --output-file $(pwd)/coverage.info
/tmp/usr/bin/lcov --gcov-tool "$GCOV" --list $(pwd)/coverage.info
LD_LIBRARY_PATH=. coverage run --branch src/python/botan.py
codecov
fi
|