.drone.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 && 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-7 -o ./scan-build/ cmake .
  18. - 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
  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/drone-notify
  25. pull: always
  26. environment:
  27. SLACK_WEBHOOK_URL:
  28. from_secret: slack_webhook_url
  29. ENV_FILE:
  30. from_secret: notify_env
  31. commands:
  32. - /root/scan-build-notify.sh
  33. trigger:
  34. branch:
  35. - master
  36. - v2.0
  37. trigger:
  38. event:
  39. - pull_request
  40. - push
  41. ---
  42. kind: signature
  43. hmac: 2e609ffccc9b6c3c0f3c2cd7da81a3793144d8e928117d27101d9e2a5cf96b5f
  44. ...