summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2020-02-19 16:13:04 +0100
committerTim Rühsen <tim.ruehsen@gmx.de>2020-02-19 17:06:06 +0100
commit2b48b50aa57a4c9c7453d3f828b90e678a46a5af (patch)
treeb8063ad241672948f45401cd92d0f1ca340ab9b4 /.gitlab-ci.yml
parente6c76e84aa881b7f754b5fb868da5cf8cc7b70a9 (diff)
downloadwget-2b48b50aa57a4c9c7453d3f828b90e678a46a5af.tar.gz
* .gitlab-ci.yml: Add 'coverity' runner
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml84
1 files changed, 64 insertions, 20 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 661e1437..8607fa01 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -56,6 +56,8 @@ VPATH/Debian:
tags:
- shared
- docker
+ except:
+ - coverity-scan@gnuwget/wget
artifacts:
expire_in: 2 weeks
when: on_failure
@@ -80,17 +82,19 @@ OpenSSL/Debian:
stage: stage1-testing
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$DEBIAN_BUILD
script:
- - echo "127.0.0.1 wgettestingserver" >>/etc/hosts
- - cat /etc/hosts
- - alias make="make -j$(nproc)"
- - ./bootstrap --skip-po
- - ./configure $CONFIGURE_BASE_FLAGS --with-ssl=openssl
- - make syntax-check
- - make check
- - make distcheck
- - make check-valgrind
+ - echo "127.0.0.1 wgettestingserver" >>/etc/hosts
+ - cat /etc/hosts
+ - alias make="make -j$(nproc)"
+ - ./bootstrap --skip-po
+ - ./configure $CONFIGURE_BASE_FLAGS --with-ssl=openssl
+ - make syntax-check
+ - make check
+ - make distcheck
+ - make check-valgrind
tags:
- - shared
+ - shared
+ except:
+ - coverity-scan@gnuwget/wget
artifacts:
expire_in: 2 weeks
when: on_failure
@@ -104,17 +108,19 @@ GnuTLS/Debian:
stage: stage1-testing
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$DEBIAN_BUILD
script:
- - echo "127.0.0.1 wgettestingserver" >>/etc/hosts
- - cat /etc/hosts
- - alias make="make -j$(nproc)"
- - ./bootstrap --skip-po
- - ./configure $CONFIGURE_BASE_FLAGS --with-ssl=gnutls
- - make syntax-check
- - make check
- - make distcheck
- - make check-valgrind
+ - echo "127.0.0.1 wgettestingserver" >>/etc/hosts
+ - cat /etc/hosts
+ - alias make="make -j$(nproc)"
+ - ./bootstrap --skip-po
+ - ./configure $CONFIGURE_BASE_FLAGS --with-ssl=gnutls
+ - make syntax-check
+ - make check
+ - make distcheck
+ - make check-valgrind
tags:
- - shared
+ - shared
+ except:
+ - coverity-scan@gnuwget/wget
artifacts:
expire_in: 2 weeks
when: on_failure
@@ -140,6 +146,8 @@ Minimal/Debian:
tags:
- shared
- docker
+ except:
+ - coverity-scan@gnuwget/wget
artifacts:
expire_in: 2 weeks
when: on_failure
@@ -168,6 +176,8 @@ Sanitizers/Debian:
- make -j$(nproc) check
tags:
- shared
+ except:
+ - coverity-scan@gnuwget/wget
artifacts:
expire_in: 2 weeks
when: on_failure
@@ -190,6 +200,7 @@ Scan-Build/Debian:
- shared
except:
- tags
+ - coverity-scan@gnuwget/wget
allow_failure: true
artifacts:
expire_in: 2 weeks
@@ -210,6 +221,7 @@ Valgrind/Debian:
- shared
except:
- tags
+ - coverity-scan@gnuwget/wget
allow_failure: true
artifacts:
expire_in: 2 weeks
@@ -233,6 +245,7 @@ Simple/Fedora:
- shared
except:
- tags
+ - coverity-scan@gnuwget/wget
artifacts:
expire_in: 2 weeks
when: on_failure
@@ -312,6 +325,7 @@ MinGW64:
- docker
except:
- tags
+ - coverity-scan@gnuwget/wget
allow_failure: true
artifacts:
expire_in: 2 weeks
@@ -335,6 +349,8 @@ Build/Arch:
tags:
- shared
- docker
+ except:
+ - coverity-scan@gnuwget/wget
artifacts:
expire_in: 2 weeks
when: on_failure
@@ -372,6 +388,8 @@ Tarball:
- shared
dependencies:
- VPATH/Debian
+ except:
+ - coverity-scan@gnuwget/wget
artifacts:
expire_in: 2 weeks
when: on_failure
@@ -380,3 +398,29 @@ Tarball:
- wget-*/fuzz/*.log
- wget-*/tests/*.log
- wget-*/testenv/*.log
+
+coverity:
+ stage: stage1-testing
+ image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
+ script:
+ - wget https://scan.coverity.com/download/linux64 --post-data "token=$COVERITY_SCAN_TOKEN&project=$COVERITY_SCAN_PROJECT_NAME" -O /tmp/coverity_tool.t
+gz
+ - tar xfz /tmp/coverity_tool.tgz
+ - ./bootstrap --skip-po
+ - CFLAGS="-g -Og" ./configure --cache-file cache/config.cache --disable-doc
+ - cov-analysis-linux64-*/bin/cov-build --dir cov-int make -j$(nproc)
+ - 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=tim.ruehsen@gmx.de
+ --form file=@cov-int.tar.gz --form version="`git describe --tags`"
+ --form description="CI build"
+ tags:
+ - shared
+ - linux
+ only:
+ - coverity-scan@gnuwget/wget
+ artifacts:
+ expire_in: 1 week
+ when: on_failure
+ paths:
+ - cov-int/*.txt