forked from signalwire/libstirshaken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
89 lines (81 loc) · 2.48 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
kind: pipeline
name: default
steps:
- name: unit-tests
image: signalwire/freeswitch-public-base
pull: always
commands:
- export WORK_DIR=$PWD
- echo $WORK_DIR
- export ASAN_OPTIONS=log_path=stdout:disable_coredump=0:unmap_shadow_on_exit=1
- ./bootstrap.sh
- ./configure --enable-address-sanitizer
- echo '#!/bin/bash\nmake -j`nproc --all` |& tee $WORK_DIR/unit-tests-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > $WORK_DIR/build-status.txt\n' > build.sh
- chmod +x build.sh
- ./build.sh
- mkdir -p $WORK_DIR/tests/unit
- cat /proc/sys/kernel/core_pattern
- ./run-tests-parallel.sh
- echo 0 > $WORK_DIR/tests/unit/run-tests-status.txt
- ./collect-test-logs.sh && exit 0 || echo 'Some tests failed'
- ls -la ./test
- echo 1 > $WORK_DIR/tests/unit/run-tests-status.txt
- ls -la /cores
- mkdir -p $WORK_DIR/tests/unit/logs
- (mv artifacts.html $WORK_DIR/tests/unit/logs/ || true)
- (mv log_run-tests_*.html $WORK_DIR/tests/unit/logs/ || true)
- (mv backtrace_*.txt $WORK_DIR/tests/unit/logs/ || true)
- ls -la $WORK_DIR/tests/unit/logs
- 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/unit-tests-notify.sh
trigger:
branch:
- master
event:
- pull_request
- push
---
kind: pipeline
name: scan-build
steps:
- name: scan-build
image: signalwire/freeswitch-public-base
pull: always
commands:
- ./bootstrap.sh
- ./configure
- mkdir -p scan-build
- 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
event:
- pull_request
- push
---
kind: signature
hmac: 716da11bad65b844600fc375ce6ad2aef061523b3642c307afd4b1b62d6f5630
...