Skip to content

Commit

Permalink
CI code coverage: I give up :(
Browse files Browse the repository at this point in the history
  • Loading branch information
PJK committed Apr 28, 2015
1 parent be43440 commit 108958a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions buildscript.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
#!/usr/bin/env bash
set -e

if [ "$CC" == "gcc" ]; then
cmake $SOURCE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc -DCOVERAGE=ON -DCUSTOM_ALLOC=$CUSTOM_ALLOC
else
cmake -DCUSTOM_ALLOC=$CUSTOM_ALLOC -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=ON $SOURCE
fi

cmake $SOURCE -DCUSTOM_ALLOC=$CUSTOM_ALLOC -DCMAKE_BUILD_TYPE=Debug
make VERBOSE=1
ctest -V

if [ "$CC" == "gcc" ]; then
lcov --capture --directory $(pwd) --output-file coverage.info
coveralls-lcov coverage.info
fi

ctest -T memcheck | tee memcheck.out
if grep -q 'Memory Leak\|IPW\|Uninitialized Memory Conditional\|Uninitialized Memory Read' memcheck.out; then
exit 1
Expand Down

0 comments on commit 108958a

Please sign in to comment.