22kind : pipeline
33name : unit-tests
44
5+ node :
6+ freeswitch : public
7+
58steps :
69 - name : run-tests
710 image : signalwire/freeswitch-public-base
811 pull : true
912 commands :
13+ - cat /proc/sys/kernel/core_pattern
1014 - ./bootstrap.sh -j
1115 - echo "applications/mod_test" >> modules.conf
12- - ./configure
16+ - sed -i '/applications\/mod_http_cache/s/^#//g' modules.conf
17+ - sed -i '/event_handlers\/mod_rayo/s/^#//g' modules.conf
18+ - sed -i '/formats\/mod_opusfile/s/^#//g' modules.conf
19+ - sed -i '/languages\/mod_lua/s/^#//g' modules.conf
20+ - export ASAN_OPTIONS=log_path=stdout:disable_coredump=0:unmap_shadow_on_exit=1;
21+ - ./configure --enable-address-sanitizer
1322 - echo "#!/bin/bash\nmake -j`nproc --all` |& tee ./unit-tests-build-result.txt\nexitstatus=\${PIPESTATUS[0]}\necho \$exitstatus > ./build-status.txt\nmake install\n" > build.sh
1423 - chmod +x build.sh
1524 - ./build.sh
1625 - cd tests/unit
1726 - ./run-tests.sh
18- - mkdir logs && (mv log_run-tests_*.html logs || true)
27+ - ls -la /cores
28+ - mkdir logs && (mv log_run-tests_*.html logs || true) && (mv backtrace_*.txt logs || true)
1929 - echo 0 > run-tests-status.txt
2030 - ./collect-test-logs.sh && exit 0 || echo 'Some tests failed'
2131 - echo 1 > run-tests-status.txt
@@ -40,8 +50,73 @@ trigger:
4050 event :
4151 - pull_request
4252 - push
53+
54+ ---
55+ kind : pipeline
56+ name : scan-build
57+
58+ node :
59+ freeswitch : public
60+
61+ steps :
62+ - name : scan-build
63+ image : signalwire/freeswitch-public-base:stretch
64+ pull : true
65+ commands :
66+ - ./bootstrap.sh -j
67+ - cp build/modules.conf.most modules.conf
68+ # Enable/Uncomment mods
69+ - sed -i "/mod_mariadb/s/^#//g" modules.conf
70+ - sed -i "/mod_v8/s/^#//g" modules.conf
71+ # Disable/Comment out mods
72+ - sed -i '/mod_ilbc/s/^/#/g' modules.conf
73+ - sed -i '/mod_isac/s/^/#/g' modules.conf
74+ - sed -i '/mod_mp4/s/^/#/g' modules.conf
75+ - sed -i '/mod_mongo/s/^/#/g' modules.conf
76+ - sed -i '/mod_pocketsphinx/s/^/#/g' modules.conf
77+ - sed -i '/mod_sangoma_codec/s/^/#/g' modules.conf
78+ - sed -i '/mod_siren/s/^/#/g' modules.conf
79+ # Comment out mods for a while
80+ - sed -i '/mod_avmd/s/^/#/g' modules.conf
81+ - sed -i '/mod_basic/s/^/#/g' modules.conf
82+ - sed -i '/mod_cdr_mongodb/s/^/#/g' modules.conf
83+ - sed -i '/mod_cv/s/^/#/g' modules.conf
84+ - sed -i '/mod_erlang_event/s/^/#/g' modules.conf
85+ - sed -i '/mod_perl/s/^/#/g' modules.conf
86+ - sed -i '/mod_rtmp/s/^/#/g' modules.conf
87+ - sed -i '/mod_unimrcp/s/^/#/g' modules.conf
88+ - sed -i '/mod_xml_rpc/s/^/#/g' modules.conf
89+ - ./configure
90+ - mkdir -p scan-build
91+ - 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
92+ - chmod +x scan.sh
93+ - ./scan.sh
94+ - exitstatus=`cat ./scan-build-status.txt`
95+ - echo "*** Exit status is $exitstatus"
96+
97+ - name : notify
98+ image : signalwire/scan-build-notify
99+ pull : true
100+ environment :
101+ GITHUB_CI_APP_PEM :
102+ from_secret : github_ci_app_pem
103+ SSH_KEY :
104+ from_secret : ssh_key
105+ SLACK_WEBHOOK_URL :
106+ from_secret : slack_webhook_url
107+ commands :
108+ - /root/notify.sh
109+
110+
111+ trigger :
112+ branch :
113+ - master
114+ event :
115+ - pull_request
116+ - push
117+
43118---
44119kind : signature
45- hmac : a34718dd1e2b9468a845962219ff05cac0c922ddf90d885af557a937a9e412e0
120+ hmac : d354f6d232ae6417b539fb9b40fc15765c3247ab58c87a5135a0ac6c448e1cd0
46121
47122...
0 commit comments