Merge pull request #2467 from signalwire/sb14

[CI] Enable scan build 14 on Drone CI
This commit is contained in:
Andrey Volk 2024-05-19 22:42:32 +03:00 committed by GitHub
commit 218a00e2e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 5 deletions

View File

@ -97,13 +97,14 @@ name: scan-build
steps: steps:
- name: bootstrap - name: bootstrap
image: signalwire/freeswitch-public-base:bullseye image: signalwire/freeswitch-public-base:bookworm
pull: always pull: always
commands: commands:
- apt-get update && apt-get -yq install autoconf
- ./bootstrap.sh -j - ./bootstrap.sh -j
- name: configure - name: configure
image: signalwire/freeswitch-public-base:bullseye image: signalwire/freeswitch-public-base:bookworm
pull: always pull: always
environment: environment:
REPOTOKEN: REPOTOKEN:
@ -140,7 +141,7 @@ steps:
- ./configure - ./configure
- name: scan-build - name: scan-build
image: signalwire/freeswitch-public-base:bullseye image: signalwire/freeswitch-public-base:bookworm
pull: always pull: always
environment: environment:
REPOTOKEN: REPOTOKEN:
@ -152,7 +153,7 @@ steps:
- export REPOTOKEN='' - export REPOTOKEN=''
- rm -rf /etc/apt/auth.conf - rm -rf /etc/apt/auth.conf
- mkdir -p scan-build - mkdir -p scan-build
- echo '#!/bin/bash\nscan-build-11 -o ./scan-build/ make -j`nproc --all` |& tee ./scan-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./scan-build-status.txt\n' > scan.sh - echo '#!/bin/bash\nscan-build-14 --force-analyze-debug-code -o ./scan-build/ make -j`nproc --all` |& tee ./scan-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./scan-build-status.txt\n' > scan.sh
- chmod +x scan.sh - chmod +x scan.sh
- ./scan.sh - ./scan.sh
- exitstatus=`cat ./scan-build-status.txt` - exitstatus=`cat ./scan-build-status.txt`
@ -178,6 +179,6 @@ trigger:
--- ---
kind: signature kind: signature
hmac: 780e4aaee61e3683ea4a8d6fe5131f7c9e62ebad727546013f18df0fca80d705 hmac: 7e5f6cafc88da0be59243daf47a2a5607ff00b45f441ce4c1041d4b690e8a853
... ...