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

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

    codecov
fi