diff options
author | Philip Withnall <withnall@endlessm.com> | 2020-07-27 12:39:24 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2020-07-27 15:47:27 +0100 |
commit | 5f25d2569df043ab1adecb33f5325eff6e651744 (patch) | |
tree | e2bc12b861ed0528eea1d972802596a698a9fea2 | |
parent | c77c5e5b567fedf3ef2046bfa3a809c9a2aff7aa (diff) | |
download | glib-wip/pwithnall/coverity.tar.gz |
ci: Add scheduled Coverity Scan buildswip/pwithnall/coverity
This should run Coverity Scan on GLib on the current schedule (once a
week).
Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r-- | .gitlab-ci.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 13b95620a..a89211a35 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -471,6 +471,37 @@ scan-build: paths: - "_scan_build/meson-logs/scanbuild" +coverity: + extends: .build-only-schedules + image: $COVERITY_IMAGE + stage: analysis + needs: [] + variables: + # cov-build doesn’t like GLIB_DEPRECATED_ENUMERATOR + CFLAGS: '-DGLIB_DISABLE_DEPRECATION_WARNINGS' + script: + - meson ${MESON_COMMON_OPTIONS} + --werror + --default-library=both + --prefix=$HOME/glib-installed + --libdir=lib + -Dsystemtap=true + -Ddtrace=true + -Dfam=true + -Dinstalled_tests=true + _coverity_build + - $HOME/cov-analysis-linux64-*/bin/cov-build --dir cov-int ninja -C _coverity_build + - tar cfz cov-int.tar.gz cov-int + - curl https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME + --form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL + --form file=@cov-int.tar.gz --form version="$CI_COMMIT_SHA" + --form description="$CI_COMMIT_SHA / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID" + artifacts: + name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + when: always + paths: + - "cov-int/build-log.txt" + pages: stage: deploy only: |