.drone.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 && git checkout v2.0 && git pull
  13. - cmake . -DCMAKE_BUILD_TYPE=Release && make && make install && cd ..
  14. - sed -i '/cotire/d' ./CMakeLists.txt
  15. - sed -i '/cotire/d' ./swclt_test/CMakeLists.txt
  16. - mkdir -p scan-build
  17. - scan-build-4.0 -o ./scan-build/ cmake .
  18. - 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
  19. - chmod +x scan.sh
  20. - ./scan.sh
  21. - exitstatus=`cat ./scan-build-status.txt`
  22. - echo "*** Exit status is $exitstatus"
  23. - name: notify
  24. image: signalwire/scan-build-notify
  25. pull: true
  26. environment:
  27. GITHUB_CI_APP_PEM:
  28. from_secret: github_ci_app_pem
  29. SSH_KEY:
  30. from_secret: ssh_key
  31. SLACK_WEBHOOK_URL:
  32. from_secret: slack_webhook_url
  33. commands:
  34. - /root/notify.sh
  35. trigger:
  36. branch:
  37. - master
  38. trigger:
  39. event:
  40. - pull_request
  41. - push
  42. ---
  43. kind: signature
  44. hmac: 745d50e22397b686f5ea525d4e0118588b0070209257738fde371d0962a0756a
  45. ...