aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/ci/travis/after_success.sh
blob: 769a8fac4cc516378ebeb8c49ae72f2006cc8e0f (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/bin/lcov --gcov-tool "$GCOV" --directory . --capture --output-file $(pwd)/coverage.info.in
    /tmp/bin/lcov --gcov-tool "$GCOV" --remove $(pwd)/coverage.info.in 'tests/*' '/usr/*' --output-file $(pwd)/coverage.info
    /tmp/bin/lcov --gcov-tool "$GCOV" --list $(pwd)/coverage.info

    LD_LIBRARY_PATH=. coverage run --branch src/python/botan.py

    codecov
fi