.drone.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ---
  2. kind: pipeline
  3. name: scan-build
  4. steps:
  5. - name: bootstrap
  6. image: signalwire/freeswitch-public-base:stretch
  7. pull: always
  8. commands:
  9. - ./bootstrap.sh
  10. - name: configure
  11. image: signalwire/freeswitch-public-base:stretch
  12. pull: always
  13. commands:
  14. - apt-get update && apt-get install -y libtiff-dev libjpeg-dev dpatch doxygen autotools-dev xsltproc
  15. - ./configure --with-pic
  16. - name: scan-build
  17. image: signalwire/freeswitch-public-base:stretch
  18. pull: always
  19. commands:
  20. - apt-get update && apt-get install -y libtiff-dev libjpeg-dev dpatch doxygen autotools-dev xsltproc
  21. - mkdir -p scan-build
  22. - echo '#!/bin/bash\nscan-build-4.0 -o ./scan-build/ make -j`nproc --all` |& tee ./scan-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./scan-build-status.txt\n' > scan.sh
  23. - chmod +x scan.sh
  24. - ./scan.sh
  25. - exitstatus=`cat ./scan-build-status.txt`
  26. - echo "*** Exit status is $exitstatus"
  27. - name: notify
  28. image: signalwire/drone-notify
  29. pull: always
  30. environment:
  31. SLACK_WEBHOOK_URL:
  32. from_secret: slack_webhook_url
  33. ENV_FILE:
  34. from_secret: notify_env
  35. commands:
  36. - /root/scan-build-notify.sh
  37. trigger:
  38. branch:
  39. - master
  40. event:
  41. - pull_request
  42. - push
  43. ---
  44. kind: signature
  45. hmac: 477f5d0b0d3b165e82cc918634d575f8f5f5f0a44ef732ad660f1f3e80e49b0f
  46. ...