58
58
run-spelling-check : true,
59
59
run-complexity : true,
60
60
run-doxygen : true,
61
- build-flags : -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror',
62
- coverage-skips : ' "\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*" "\*3rdparty\*"' ,
61
+ build-flags : -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='-Wall -Wextra -Werror',
63
62
},
64
63
{
65
64
repository : coreHTTP,
69
68
run-spelling-check : true,
70
69
run-complexity : true,
71
70
run-doxygen : true,
72
- build-flags : -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='--coverage - Wall -Wextra -DNDEBUG',
73
- coverage-skips : ' "\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*" "\* 3rdparty\*" ' ,
71
+ build-flags : -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='-Wall -Wextra -DNDEBUG',
72
+ coverage-skips : " * 3rdparty* " ,
74
73
},
75
74
{
76
75
repository : coreJSON,
80
79
run-spelling-check : true,
81
80
run-complexity : true,
82
81
run-doxygen : true,
83
- build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror',
84
- coverage-skips : ' "\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*" "\*source\*"' ,
82
+ build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='-Wall -Wextra -Werror',
85
83
},
86
84
{
87
85
repository : coreMQTT,
92
90
run-complexity : true,
93
91
run-doxygen : true,
94
92
build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror -DNDEBUG -DLIBRARY_LOG_LEVEL=LOG_DEBUG',
95
- coverage-skips : ' "\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*"' ,
96
93
},
97
94
{
98
95
repository : corePKCS11,
102
99
run-spelling-check : false,
103
100
run-complexity : true,
104
101
run-doxygen : true,
105
- build-flags : -DCMAKE_BUILD_TYPE=Debug -DSYSTEM_TESTS=0 -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -DNDEBUG',
106
- coverage-skips : ' "\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*"' ,
102
+ build-flags : -DCMAKE_BUILD_TYPE=Debug -DSYSTEM_TESTS=0 -DCMAKE_C_FLAGS='-Wall -Wextra -DNDEBUG',
107
103
branch-coverage : 90,
108
104
},
109
105
{
@@ -114,8 +110,7 @@ jobs:
114
110
run-spelling-check : true,
115
111
run-complexity : true,
116
112
run-doxygen : true,
117
- build-flags : -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror -DNDEBUG -Wno-error=pedantic -Wno-variadic-macros -DLOGGING_LEVEL_DEBUG=1',
118
- coverage-skips : ' "\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*"' ,
113
+ build-flags : -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='-Wall -Wextra -Werror -DNDEBUG -Wno-error=pedantic -Wno-variadic-macros -DLOGGING_LEVEL_DEBUG=1',
119
114
},
120
115
{
121
116
repository : FreeRTOS-Cellular-Interface,
@@ -125,8 +120,7 @@ jobs:
125
120
run-spelling-check : true,
126
121
run-complexity : true,
127
122
run-doxygen : true,
128
- build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror -DNDEBUG',
129
- coverage-skips : ' "\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*"' ,
123
+ build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='-Wall -Wextra -Werror -DNDEBUG',
130
124
},
131
125
{
132
126
repository : Device-Defender-for-AWS-IoT-embedded-sdk,
@@ -136,8 +130,7 @@ jobs:
136
130
run-spelling-check : true,
137
131
run-complexity : true,
138
132
run-doxygen : true,
139
- build-flags : -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror -DNDEBUG',
140
- coverage-skips : ' "\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*"' ,
133
+ build-flags : -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='-Wall -Wextra -Werror -DNDEBUG',
141
134
},
142
135
{
143
136
repository : Device-Shadow-for-AWS-IoT-embedded-sdk,
@@ -146,8 +139,7 @@ jobs:
146
139
run-link-verifier : true,
147
140
run-spelling-check : true,
148
141
run-complexity : true,
149
- build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror -DNDEBUG',
150
- coverage-skips : ' "\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*"' ,
142
+ build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='-Wall -Wextra -Werror -DNDEBUG',
151
143
},
152
144
{
153
145
repository : Fleet-Provisioning-for-AWS-IoT-embedded-sdk,
@@ -157,8 +149,7 @@ jobs:
157
149
run-spelling-check : true,
158
150
run-complexity : true,
159
151
run-doxygen : true,
160
- build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror -DNDEBUG',
161
- coverage-skips : ' "\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*"' ,
152
+ build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='-Wall -Wextra -Werror -DNDEBUG',
162
153
},
163
154
{
164
155
repository : Jobs-for-AWS-IoT-embedded-sdk,
@@ -168,8 +159,7 @@ jobs:
168
159
run-spelling-check : true,
169
160
run-complexity : false,
170
161
run-doxygen : true,
171
- build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror',
172
- coverage-skips : ' "\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*" "\*source\*"' ,
162
+ build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='-Wall -Wextra -Werror',
173
163
},
174
164
{
175
165
repository : ota-for-AWS-IoT-embedded-sdk,
@@ -179,7 +169,7 @@ jobs:
179
169
run-spelling-check : true,
180
170
run-complexity : true,
181
171
run-doxygen : true,
182
- build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='--coverage - Wall -Wextra -DNDEBUG',
172
+ build-flags : -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='-Wall -Wextra -DNDEBUG',
183
173
},
184
174
{
185
175
repository : SigV4-for-AWS-IoT-embedded-sdk,
@@ -188,8 +178,7 @@ jobs:
188
178
run-complexity : true,
189
179
run-spelling-check : true,
190
180
run-doxygen : true,
191
- build-flags : -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -DNDEBUG -DLOGGING_LEVEL_DEBUG=1',
192
- coverage-skips : ' "\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*"' ,
181
+ build-flags : -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='-Wall -Wextra -DNDEBUG -DLOGGING_LEVEL_DEBUG=1',
193
182
},
194
183
]
195
184
steps :
@@ -220,7 +209,7 @@ jobs:
220
209
with :
221
210
path : repo/${{ matrix.inputs.repository }}
222
211
exclude-dirs : complexity, formatting
223
- exclude-urls : https://dummy-url.com/ota.bin, https://s3.region.amazonaws.com/joe-ota
212
+ exclude-urls : https://dummy-url.com/ota.bin, https://s3.region.amazonaws.com/joe-ota, https://www.gnu.org/software/complexity/manual/complexity.html, https://www.u-blox.com/en/product/sara-r4-series
224
213
225
214
- name : " Complexity Check: ${{ matrix.inputs.repository }}"
226
215
if : matrix.inputs.run-complexity && ( success() || failure() )
@@ -321,9 +310,10 @@ jobs:
321
310
else
322
311
lcov --rc lcov_branch_coverage=1 -r build/coverage.info -o build/coverage.info
323
312
fi
313
+
324
314
echo -e "::endgroup::"
325
315
326
- lcov --rc lcov_branch_coverage=1 --list build/coverage.info
316
+ lcov --rc lcov_branch_coverage=1 --summary build/coverage.info
327
317
328
318
- name : Test coverage cop action ${{matrix.inputs.repository}}
329
319
if : matrix.inputs.run-complexity && ( success() || failure() )
0 commit comments