From: Daniel Stenberg Date: Thu, 27 Jan 2022 13:38:27 +0000 (+0100) Subject: CI: move scan-build job from Zuul to Azure Pipelines X-Git-Tag: curl-7_82_0~173 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=36e8703a2092141d83c5a394e36b50db9b079505;p=thirdparty%2Fcurl.git CI: move scan-build job from Zuul to Azure Pipelines Closes #8338 --- diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 7d4e7741a4..677e11a70a 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -152,6 +152,37 @@ stages: displayName: 'verify out-of-tree cmake build' +- stage: scanbuild + dependsOn: [] + jobs: + - job: ubuntu + timeoutInMinutes: 20 + pool: + vmImage: 'ubuntu-latest' + strategy: + matrix: + default: + name: default + install: + + steps: + - script: sudo apt-get update && sudo apt-get install -y clang-tools-10 clang-9 libssl-dev libssh2-1-dev libpsl-dev libbrotli-dev libzstd-dev + displayName: 'apt install' + + - script: ./buildconf + displayName: 'buildconf' + + - script: scan-build-10 ./configure --enable-debug --enable-werror --with-openssl --with-libssh2 + displayName: 'configure' + env: + CC: "clang-9" + CCX: "clang++-9" + + - script: scan-build-10 --status-bugs make + displayName: 'make' + + - script: scan-build-10 --status-bugs make examples + displayName: 'make examples' ########################################## ### Windows jobs below diff --git a/scripts/zuul/script.sh b/scripts/zuul/script.sh index 79ef8899bf..ccc75fc739 100755 --- a/scripts/zuul/script.sh +++ b/scripts/zuul/script.sh @@ -119,9 +119,3 @@ if [ "$T" = "fuzzer" ]; then ./mainline.sh ${CURLSRC} popd fi - -if [ "$T" = "scan-build" ]; then - scan-build ./configure --enable-debug --enable-werror $C - scan-build --status-bugs make - scan-build --status-bugs make examples -fi diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 9ce3dd8f96..340ca7e7de 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -412,26 +412,6 @@ T: tidy C: --with-openssl -- job: - name: curl-scan-build - parent: curl-base - vars: - curl_apt_packages: - - clang-tools-10 - - clang-9 - - libssl-dev - - libssh2-1-dev - - libpsl-dev - - libbrotli-dev - - libzstd-dev - curl_env: - CC: clang-9 - CXX: clang++-9 - T: scan-build - C: >- - --with-openssl - --with-libssh2 - - job: name: curl-debug-clang-with-openssl-dl-ubsan parent: curl-base @@ -484,6 +464,5 @@ - curl-events - curl-fuzzer - curl-tidy - - curl-scan-build - curl-debug-clang-with-openssl-dl-ubsan ...