Skip to content

Commit dd793ef

Browse files
author
Peter Spiess-Knafl
committed
fixing report conservation
1 parent 53712b4 commit dd793ef

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

dev/ci.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,28 @@ cleanup() {
2222
cd ..
2323
rm -rf build
2424
}
25-
25+
rm -rf reports
26+
mkdir -p reports
2627
build_configuration "-DCMAKE_BUILD_TYPE=Debug -DHTTP_SERVER=YES -DHTTP_CLIENT=YES -DCOMPILE_STUBGEN=YES -DCOMPILE_EXAMPLES=YES -DCOMPILE_TESTS=YES"
27-
2828
echo "Compiling examples"
2929
cd build
3030
g++ ../src/examples/simpleclient.cpp -Iroot/usr/local/include -Lroot/usr/local/lib -ljsonrpccpp-client -ljsoncpp -ljsonrpccpp-common -lcurl -o sampleclient
3131
g++ ../src/examples/simpleserver.cpp -Iroot/usr/local/include -Lroot/usr/local/lib -ljsonrpccpp-server -ljsoncpp -ljsonrpccpp-common -lmicrohttpd -o sampleserver
3232
test -f sampleclient
3333
test -f sampleserver
3434

35-
mkdir -p reports
36-
3735
echo "Generating valgrind report"
38-
valgrind --leak-check=full --xml=yes --xml-file=reports/valgrind.xml ./bin/unit_testsuite --log_format=XML --log_sink=reports/tests.xml --log_level=all --report_level=no
36+
valgrind --leak-check=full --xml=yes --xml-file=../reports/valgrind.xml ./bin/unit_testsuite --log_format=XML --log_sink=../reports/tests.xml --log_level=all --report_level=no
3937

4038

4139
echo "Generating coverage report"
4240
gcovr -x -r .. > reports/coverage.xml
43-
gcovr -r .. --html --html-details -o reports/coverage.html
41+
gcovr -r .. --html --html-details -o ../reports/coverage.html
4442

4543
echo "Generating cppcheck report"
46-
cppcheck --enable=all --xml ../src 2> reports/cppcheck.xml
44+
cppcheck --enable=all --xml ../src 2> ../reports/cppcheck.xml
4745

4846
cd ..
49-
mv build/reports reports
5047
echo "Cleanup that mess"
5148
cleanup
5249

0 commit comments

Comments
 (0)