-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Thiery Ouattara <[email protected]>
- Loading branch information
1 parent
d5993df
commit d0df478
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
#Butterfly root directory | ||
cd "$(dirname "$0")/.." | ||
|
||
rm -fr build | true | ||
rm -fr build || true | ||
sed -i '/tput setaf/d' scripts/*.sh | ||
sed -i '/^clean_coverage/d' scripts/tests_coverage.sh | ||
mkdir build && cd build | ||
cmake .. -DCOVERAGE=ON | ||
make | ||
make tests-all | ||
gcovr --exclude '../3rdparty' --exclude '../build' --exclude '../api/server/simpleini' -r '../' --xml-pretty -o coverage.xml | ||
mkdir build && cd build && cmake .. -DCOVERAGE=ON && make && make tests-all | ||
if [ "$?" -ne 0 ]; then | ||
echo "Build and tests FAILED" | ||
exit 1 | ||
fi | ||
gcovr --exclude '../3rdparty' --exclude '../build' --exclude '../api/server/simpleini' -r '../' --xml-pretty -o coverage.xml || exit 1 | ||
|
||
echo "Build and tests succeded" | ||
echo "Build and tests succeeded" | ||
exit 0 |