123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- ---
- kind: pipeline
- name: default
- steps:
- - name: scan-build
- image: debian:buster
- pull: always
- commands:
- - apt-get update && apt-get install -yq build-essential autotools-dev lsb-release pkg-config automake autoconf libtool-bin clang-tools-7
- - apt-get install -yq cmake uuid-dev libssl-dev
- - sed -i '/cotire/d' ./CMakeLists.txt
- - mkdir -p scan-build
- - scan-build-7 -o ./scan-build/ cmake .
- - echo '#!/bin/bash\nscan-build-7 -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`
- - echo "*** Exit status is $exitstatus"
- - name: notify
- image: signalwire/drone-notify
- pull: always
- environment:
- SLACK_WEBHOOK_URL:
- from_secret: slack_webhook_url
- ENV_FILE:
- from_secret: notify_env
- commands:
- - /root/scan-build-notify.sh
-
- trigger:
- branch:
- - master
- - v2.0
- trigger:
- event:
- - pull_request
- - push
- ---
- kind: signature
- hmac: b5f3149fdddd80d6162b2c1bda737d5c1d19ce7b0b1769798607dc670a90e85c
- ...
|