]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CI: move scan-build job from Zuul to Azure Pipelines
authorDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jan 2022 13:38:27 +0000 (14:38 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 27 Jan 2022 15:13:38 +0000 (16:13 +0100)
Closes #8338

.azure-pipelines.yml
scripts/zuul/script.sh
zuul.d/jobs.yaml

index 7d4e7741a471fd54c480e87c49564042053749a5..677e11a70a1b82cb5733a85d11a68ec214bc4da1 100644 (file)
@@ -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
index 79ef8899bfaaf21f90c63f3d83b678abf813f859..ccc75fc73948e0988890178f18a0bbf0c82268d6 100755 (executable)
@@ -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
index 9ce3dd8f961b771839471a96fd1d4c2fa21ccf95..340ca7e7de1f442258e6b368d778a27b9c48a179 100644 (file)
         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
       - curl-events
       - curl-fuzzer
       - curl-tidy
-      - curl-scan-build
       - curl-debug-clang-with-openssl-dl-ubsan
 ...