@@ -5,18 +5,19 @@ name: unit-tests
55steps :
66 - name : bootstrap
77 image : signalwire/freeswitch-public-base
8- pull : true
8+ pull : always
99 commands :
1010 - cat /proc/sys/kernel/core_pattern
1111 - ./bootstrap.sh -j
1212
1313 - name : configure
1414 image : signalwire/freeswitch-public-base
15- pull : true
15+ pull : always
1616 commands :
17- - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
18- - DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
19- - echo "applications/mod_test" >> modules.conf
17+ - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
18+ - DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
19+ - git clone https://github.com/freeswitch/sofia-sip.git
20+ - cd sofia-sip && ./autogen.sh && ./configure.gnu && make -j`nproc` && make install && cd ..
2021 - echo 'codecs/mod_openh264' >> modules.conf
2122 - sed -i '/applications\\/mod_http_cache/s/^#//g' modules.conf
2223 - sed -i '/event_handlers\\/mod_rayo/s/^#//g' modules.conf
@@ -27,20 +28,22 @@ steps:
2728
2829 - name : build
2930 image : signalwire/freeswitch-public-base
30- pull : true
31+ pull : always
3132 commands :
32- - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
33- - DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
33+ - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
34+ - DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
35+ - cd sofia-sip && make install && cd ..
3436 - echo '#!/bin/bash\nmake -j`nproc --all` |& tee ./unit-tests-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./build-status.txt\n' > build.sh
3537 - chmod +x build.sh
3638 - ./build.sh
3739
3840 - name : run-tests
3941 image : signalwire/freeswitch-public-base
40- pull : true
42+ pull : always
4143 commands :
42- - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
43- - DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
44+ - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
45+ - DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
46+ - cd sofia-sip && make install && cd ..
4447 - make install || true
4548 - cd tests/unit
4649 - ./run-tests.sh
@@ -53,15 +56,15 @@ steps:
5356
5457 - name : notify
5558 image : signalwire/drone-notify
56- pull : true
59+ pull : always
5760 environment :
5861 SLACK_WEBHOOK_URL :
5962 from_secret : slack_webhook_url
6063 ENV_FILE :
6164 from_secret : notify_env
6265 commands :
6366 - /root/unit-tests-notify.sh
64-
67+
6568trigger :
6669 branch :
6770 - master
@@ -75,14 +78,14 @@ name: scan-build
7578
7679steps :
7780 - name : bootstrap
78- image : signalwire/freeswitch-public-base:stretch
79- pull : true
81+ image : signalwire/freeswitch-public-base
82+ pull : always
8083 commands :
8184 - ./bootstrap.sh -j
8285
8386 - name : configure
84- image : signalwire/freeswitch-public-base:stretch
85- pull : true
87+ image : signalwire/freeswitch-public-base
88+ pull : always
8689 commands :
8790 - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
8891 - DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
@@ -112,21 +115,21 @@ steps:
112115 - ./configure
113116
114117 - name : scan-build
115- image : signalwire/freeswitch-public-base:stretch
116- pull : true
118+ image : signalwire/freeswitch-public-base
119+ pull : always
117120 commands :
118121 - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
119122 - DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
120123 - mkdir -p scan-build
121- - 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
124+ - 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
122125 - chmod +x scan.sh
123126 - ./scan.sh
124127 - exitstatus=`cat ./scan-build-status.txt`
125128 - echo "*** Exit status is $exitstatus"
126129
127130 - name : notify
128131 image : signalwire/drone-notify
129- pull : true
132+ pull : always
130133 environment :
131134 SLACK_WEBHOOK_URL :
132135 from_secret : slack_webhook_url
@@ -135,7 +138,6 @@ steps:
135138 commands :
136139 - /root/scan-build-notify.sh
137140
138-
139141trigger :
140142 branch :
141143 - master
@@ -145,6 +147,6 @@ trigger:
145147
146148---
147149kind : signature
148- hmac : af77439b382612b49140cb95f04d6d695e0a188c411ae227abcba205bf96bab9
150+ hmac : a85b0db203d2c9a71c3e4a63a46b5513fbdb3b8f5135e21d0fe0992f33626824
149151
150152...
0 commit comments