.drone.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ---
  2. kind: pipeline
  3. name: default
  4. steps:
  5. - name: scan-build
  6. image: debian:stretch
  7. pull: true
  8. commands:
  9. - apt-get update && apt-get install -yq build-essential autotools-dev lsb-release pkg-config automake autoconf libtool-bin clang-tools-4.0
  10. - apt-get install -yq cmake uuid-dev libssl1.0-dev
  11. - sed -i '/cotire/d' ./CMakeLists.txt
  12. - mkdir -p scan-build
  13. - scan-build-4.0 -o ./scan-build/ cmake .
  14. - 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
  15. - chmod +x scan.sh
  16. - ./scan.sh
  17. - exitstatus=`cat ./scan-build-status.txt`
  18. - echo "*** Exit status is $exitstatus"
  19. - name: notify
  20. image: signalwire/scan-build-notify
  21. pull: true
  22. environment:
  23. GITHUB_CI_APP_PEM:
  24. from_secret: github_ci_app_pem
  25. SSH_KEY:
  26. from_secret: ssh_key
  27. SLACK_WEBHOOK_URL:
  28. from_secret: slack_webhook_url
  29. commands:
  30. - /root/notify.sh
  31. trigger:
  32. branch:
  33. - master
  34. trigger:
  35. event:
  36. - pull_request
  37. - push
  38. ---
  39. kind: signature
  40. hmac: 38dfce6a07e588929305eb2c983dda31b1dc97dd84aeec9b70d267fddc65827e
  41. ...