1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh BUILD_MODE=$1 set -ev if [ "$BUILD_MODE" = "coverage"] then lcov --directory . --capture --output-file coverage.info lcov --remove coverage.info 'tests/*' '/usr/*' --output-file coverage.info lcov --list coverage.info coveralls-lcov -t $COVERALLS_REPO_TOKEN coverage.info fi