Skip to content

Commit 75ec610

Browse files
committed
.gitlab-ci.yml: Added pip dependencies
1 parent 125de14 commit 75ec610

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.gitlab-ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ build doxygen:
168168
- .container_image_no_nightly_run_template
169169
stage: "🚧 Build Stage 2"
170170
script:
171-
- sudo dnf install -y doxygen
171+
- sudo dnf install -y doxygen plantuml
172172
- chmod 777 scripts/*.sh
173173
- scripts/doxygen.sh
174174
- cd $BUILD_WORKSPACE/doxygen/
@@ -228,13 +228,16 @@ build doxygen test:
228228
- .container_image_no_nightly_run_template
229229
stage: "🧪 Test"
230230
script:
231-
- sudo dnf install -y doxygen
231+
- sudo dnf install -y doxygen pipx plantuml
232+
- export PATH=$PATH:/root/.local/bin
233+
- pipx install doxygen-junit
232234
- chmod 777 scripts/*.sh
233235
- scripts/doxygen.sh || true
234236
# Fix the file path references so they are relative to the blob and not the buildspace. We use ; as the substitute so don't have to escape every forwardslash
235237
- sed -i "s;$CI_PROJECT_DIR/src;src;g" $BUILD_WORKSPACE/doxygen/doxygen_warnings.log || exit 1
236238
- sed -i "s;$CI_PROJECT_DIR/test;test;g" $BUILD_WORKSPACE/doxygen/doxygen_warnings.log || exit 1
237239
- doxygen_junit --input $BUILD_WORKSPACE/doxygen/doxygen_warnings.log --output $BUILD_WORKSPACE/doxygen/doxygen_junit.xml || exit 1
240+
- cat $BUILD_WORKSPACE/doxygen/doxygen_junit.xml
238241
- grep -iq "<error " "$BUILD_WORKSPACE/doxygen/doxygen_junit.xml" && exit 1 || exit 0
239242
needs:
240243
- "build doxygen"
@@ -250,6 +253,9 @@ cppcheck:
250253
stage: "🧪 Test"
251254
timeout: 60 minutes
252255
script:
256+
- sudo dnf install -y pipx
257+
- export PATH=$PATH:/root/.local/bin
258+
- pipx install cppcheck-codequality
253259
- rm -rf $BUILD_WORKSPACE # Ensure we start clean
254260
- cmake . -B $BUILD_WORKSPACE -DAPS_CHRONY_DBUS_SERVICE_FETCH_CONTENT_USE_GITLAB_CI_TOKEN=ON -DCMAKE_BUILD_TYPE=Debug -DAPS_CHRONY_DBUS_SERVICE_ENABLE_CPPCHECK=ON -DAPS_CHRONY_DBUS_SERVICE_ENABLE_CPPCHECK_EXHAUSTIVE=ON
255261
- cmake --build $BUILD_WORKSPACE --parallel $PARALLEL
@@ -258,6 +264,7 @@ cppcheck:
258264
# Fix the file path references so they are relative to the blob and not the buildspace. We use ; as the substitute so don't have to escape every forwardslash
259265
- sed -i "s;$CI_PROJECT_DIR/src;src;g" $BUILD_WORKSPACE/cppcheck_report.json
260266
- sed -i "s;$CI_PROJECT_DIR/test;test;g" $BUILD_WORKSPACE/cppcheck_report.json
267+
- cat $BUILD_WORKSPACE/cppcheck.xml
261268
- if [ $(grep -ic "<error " $BUILD_WORKSPACE/cppcheck.xml) -gt 0 ]; then exit 1; fi
262269
artifacts:
263270
reports:

0 commit comments

Comments
 (0)