Skip to content

Commit

Permalink
buid: fix checking error
Browse files Browse the repository at this point in the history
Signed-off-by: Thiery Ouattara <[email protected]>
  • Loading branch information
outscale-toa authored and outscale-mgo committed Mar 1, 2019
1 parent d5993df commit d0df478
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions scripts/build_jenkins
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

0 comments on commit d0df478

Please sign in to comment.