2
0

.drone.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ---
  2. kind: pipeline
  3. name: default
  4. steps:
  5. - name: scan-build
  6. image: debian:buster
  7. pull: always
  8. commands:
  9. - apt-get update && apt-get install -yq git build-essential autotools-dev lsb-release pkg-config automake autoconf libtool-bin clang-tools-7
  10. - apt-get install -yq cmake uuid-dev libssl-dev
  11. - git clone https://github.com/signalwire/libks libks
  12. - cd libks && cmake . -DCMAKE_BUILD_TYPE=Release && make && make install && cd ..
  13. - sed -i '/cotire/d' ./CMakeLists.txt
  14. - sed -i '/cotire/d' ./swclt_test/CMakeLists.txt
  15. - mkdir -p scan-build
  16. - scan-build-7 -o ./scan-build/ cmake .
  17. - 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
  18. - chmod +x scan.sh
  19. - ./scan.sh
  20. - exitstatus=`cat ./scan-build-status.txt`
  21. - echo "*** Exit status is $exitstatus"
  22. - name: notify
  23. image: signalwire/drone-notify
  24. pull: always
  25. environment:
  26. SLACK_WEBHOOK_URL:
  27. from_secret: slack_webhook_url
  28. ENV_FILE:
  29. from_secret: notify_env
  30. commands:
  31. - /root/scan-build-notify.sh
  32. trigger:
  33. branch:
  34. - master
  35. trigger:
  36. event:
  37. - pull_request
  38. - push
  39. ---
  40. kind: signature
  41. hmac: 4cda5542fa43796175f5abe9f8510deb23677fe8d4578e8c6096625d28705d49
  42. ...