.drone.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 git 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. - 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-4.0 -o ./scan-build/ cmake .
  17. - 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
  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/scan-build-notify
  24. pull: true
  25. environment:
  26. GITHUB_CI_APP_PEM:
  27. from_secret: github_ci_app_pem
  28. SSH_KEY:
  29. from_secret: ssh_key
  30. SLACK_WEBHOOK_URL:
  31. from_secret: slack_webhook_url
  32. commands:
  33. - /root/notify.sh
  34. trigger:
  35. branch:
  36. - master
  37. trigger:
  38. event:
  39. - pull_request
  40. - push
  41. ---
  42. kind: signature
  43. hmac: 745d50e22397b686f5ea525d4e0118588b0070209257738fde371d0962a0756a
  44. ...