CI: move scan-build job from Zuul to Azure Pipelines

Closes #8338
This commit is contained in:
Daniel Stenberg 2022-01-27 14:38:27 +01:00
parent 610bd89315
commit 36e8703a20
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 31 additions and 27 deletions

View 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

View file

@ -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

View file

@ -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
...