-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathwebsite.sh
More file actions
executable file
·28 lines (23 loc) · 649 Bytes
/
website.sh
File metadata and controls
executable file
·28 lines (23 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
set -eox pipefail
# build the doxide website in a reproducible way
# build doxide with code coverage enabled
mkdir build
cd build
CXXFLAGS="--coverage -O0 -fno-inline -fno-elide-constructors -Wall" \
cmake -DCMAKE_BUILD_TYPE=Debug ..
cmake --build . --parallel 16
cmake --install . --prefix $HOME/.local
cd ..
# run a few things to collect code coverage data
doxide build
mkdir hello
cd hello
doxide init
doxide cover > coverage.json
cd ..
rm -rf hello
# collate code coverage data
find . -name '*.gcda' | xargs gcov --stdout > coverage.gcov
# rebuild docs with code coverage report included
doxide build --coverage coverage.gcov