forked from signalwire/libks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
45 lines (40 loc) · 1.2 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
kind: pipeline
name: default
steps:
- name: scan-build
image: debian:buster
pull: always
commands:
- apt-get update && apt-get install -yq build-essential autotools-dev lsb-release pkg-config automake autoconf libtool-bin clang-tools-7
- apt-get install -yq cmake uuid-dev libssl-dev
- sed -i '/cotire/d' ./CMakeLists.txt
- mkdir -p scan-build
- scan-build-7 -o ./scan-build/ cmake .
- 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
- chmod +x scan.sh
- ./scan.sh
- exitstatus=`cat ./scan-build-status.txt`
- echo "*** Exit status is $exitstatus"
- name: notify
image: signalwire/drone-notify
pull: always
environment:
SLACK_WEBHOOK_URL:
from_secret: slack_webhook_url
ENV_FILE:
from_secret: notify_env
commands:
- /root/scan-build-notify.sh
trigger:
branch:
- master
- v2.0
trigger:
event:
- pull_request
- push
---
kind: signature
hmac: b5f3149fdddd80d6162b2c1bda737d5c1d19ce7b0b1769798607dc670a90e85c
...