Skip to content

Commit

Permalink
[CI] Enable scan build 14 on Drone CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andywolk committed May 19, 2024
1 parent c2b7f0b commit 72eef56
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,14 @@ name: scan-build

steps:
- name: bootstrap
image: signalwire/freeswitch-public-base:bullseye
image: signalwire/freeswitch-public-base:bookworm
pull: always
commands:
- apt-get update && apt-get -yq install autoconf
- ./bootstrap.sh -j

- name: configure
image: signalwire/freeswitch-public-base:bullseye
image: signalwire/freeswitch-public-base:bookworm
pull: always
environment:
REPOTOKEN:
Expand Down Expand Up @@ -140,7 +141,7 @@ steps:
- ./configure

- name: scan-build
image: signalwire/freeswitch-public-base:bullseye
image: signalwire/freeswitch-public-base:bookworm
pull: always
environment:
REPOTOKEN:
Expand All @@ -152,7 +153,7 @@ steps:
- export REPOTOKEN=''
- rm -rf /etc/apt/auth.conf
- 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
- ./scan.sh
- exitstatus=`cat ./scan-build-status.txt`
Expand All @@ -178,6 +179,6 @@ trigger:

---
kind: signature
hmac: 780e4aaee61e3683ea4a8d6fe5131f7c9e62ebad727546013f18df0fca80d705
hmac: 7e5f6cafc88da0be59243daf47a2a5607ff00b45f441ce4c1041d4b690e8a853

...

0 comments on commit 72eef56

Please sign in to comment.