mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 01:57:14 +02:00
ci: Move the valgrind job definition
Move it closer to the `scan-build` and `coverity` jobs, which are both also `.only-schedules`. This makes the job order in the CI file a bit more logical. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
@@ -219,42 +219,6 @@ G_DISABLE_ASSERT:
|
|||||||
- "_build/meson-logs"
|
- "_build/meson-logs"
|
||||||
- "_build/${CI_JOB_NAME}-report.xml"
|
- "_build/${CI_JOB_NAME}-report.xml"
|
||||||
|
|
||||||
valgrind:
|
|
||||||
extends:
|
|
||||||
- .build-linux
|
|
||||||
- .only-schedules
|
|
||||||
image: $FEDORA_IMAGE
|
|
||||||
stage: analysis
|
|
||||||
needs: []
|
|
||||||
variables:
|
|
||||||
MESON_TEST_TIMEOUT_MULTIPLIER: 10
|
|
||||||
script:
|
|
||||||
- meson ${MESON_COMMON_OPTIONS}
|
|
||||||
--werror
|
|
||||||
-Dsystemtap=true
|
|
||||||
-Ddtrace=true
|
|
||||||
-Dinstalled_tests=true
|
|
||||||
_build
|
|
||||||
- ninja -C _build
|
|
||||||
- bash -x ./.gitlab-ci/run-tests.sh
|
|
||||||
--log-file _build/meson-logs/testlog-valgrind.json
|
|
||||||
--wrap "valgrind --tool=memcheck --error-exitcode=1 --track-origins=yes --leak-check=full --leak-resolution=high --num-callers=50 --show-leak-kinds=definite,possible --show-error-list=yes --suppressions=${CI_PROJECT_DIR}/glib.supp"
|
|
||||||
--no-suite no-valgrind
|
|
||||||
--no-suite slow
|
|
||||||
# FIXME: Remove this when we have zero valgrind leaks.
|
|
||||||
# https://gitlab.gnome.org/GNOME/glib/issues/333
|
|
||||||
allow_failure: true
|
|
||||||
artifacts:
|
|
||||||
reports:
|
|
||||||
junit: "_build/${CI_JOB_NAME}-report.xml"
|
|
||||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
||||||
when: always
|
|
||||||
expire_in: 1 week
|
|
||||||
paths:
|
|
||||||
- "_build/config.h"
|
|
||||||
- "_build/glib/glibconfig.h"
|
|
||||||
- "_build/meson-logs"
|
|
||||||
|
|
||||||
.cross-build-linux:
|
.cross-build-linux:
|
||||||
extends: .build-linux
|
extends: .build-linux
|
||||||
stage: build
|
stage: build
|
||||||
@@ -554,6 +518,42 @@ coverity:
|
|||||||
paths:
|
paths:
|
||||||
- "cov-int/build-log.txt"
|
- "cov-int/build-log.txt"
|
||||||
|
|
||||||
|
valgrind:
|
||||||
|
extends:
|
||||||
|
- .build-linux
|
||||||
|
- .only-schedules
|
||||||
|
image: $FEDORA_IMAGE
|
||||||
|
stage: analysis
|
||||||
|
needs: []
|
||||||
|
variables:
|
||||||
|
MESON_TEST_TIMEOUT_MULTIPLIER: 10
|
||||||
|
script:
|
||||||
|
- meson ${MESON_COMMON_OPTIONS}
|
||||||
|
--werror
|
||||||
|
-Dsystemtap=true
|
||||||
|
-Ddtrace=true
|
||||||
|
-Dinstalled_tests=true
|
||||||
|
_build
|
||||||
|
- ninja -C _build
|
||||||
|
- bash -x ./.gitlab-ci/run-tests.sh
|
||||||
|
--log-file _build/meson-logs/testlog-valgrind.json
|
||||||
|
--wrap "valgrind --tool=memcheck --error-exitcode=1 --track-origins=yes --leak-check=full --leak-resolution=high --num-callers=50 --show-leak-kinds=definite,possible --show-error-list=yes --suppressions=${CI_PROJECT_DIR}/glib.supp"
|
||||||
|
--no-suite no-valgrind
|
||||||
|
--no-suite slow
|
||||||
|
# FIXME: Remove this when we have zero valgrind leaks.
|
||||||
|
# https://gitlab.gnome.org/GNOME/glib/issues/333
|
||||||
|
allow_failure: true
|
||||||
|
artifacts:
|
||||||
|
reports:
|
||||||
|
junit: "_build/${CI_JOB_NAME}-report.xml"
|
||||||
|
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||||
|
when: always
|
||||||
|
expire_in: 1 week
|
||||||
|
paths:
|
||||||
|
- "_build/config.h"
|
||||||
|
- "_build/glib/glibconfig.h"
|
||||||
|
- "_build/meson-logs"
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
only:
|
||||||
|
Reference in New Issue
Block a user