forked from seven1240/libks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
46 lines (41 loc) · 1.26 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
46
---
kind: pipeline
name: default
steps:
- name: scan-build
image: debian:stretch
pull: true
commands:
- apt-get update && apt-get install -yq build-essential autotools-dev lsb-release pkg-config automake autoconf libtool-bin clang-tools-4.0
- apt-get install -yq cmake uuid-dev libssl1.0-dev
- sed -i '/cotire/d' ./CMakeLists.txt
- mkdir -p scan-build
- scan-build-4.0 -o ./scan-build/ cmake .
- 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
- chmod +x scan.sh
- ./scan.sh
- exitstatus=`cat ./scan-build-status.txt`
- echo "*** Exit status is $exitstatus"
- name: notify
image: signalwire/scan-build-notify
pull: true
environment:
GITHUB_CI_APP_PEM:
from_secret: github_ci_app_pem
SSH_KEY:
from_secret: ssh_key
SLACK_WEBHOOK_URL:
from_secret: slack_webhook_url
commands:
- /root/notify.sh
trigger:
branch:
- master
trigger:
event:
- pull_request
- push
---
kind: signature
hmac: 38dfce6a07e588929305eb2c983dda31b1dc97dd84aeec9b70d267fddc65827e
...