mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-30 18:33:46 +00:00
Merge pull request #1208 from signalwire/sofiadrone
[Unit-tests] Build sofia-sip on the fly on Drone CI so backtraces are more informative in ASAN reports.
This commit is contained in:
commit
08c2bf94a7
21
.drone.yml
21
.drone.yml
@ -14,8 +14,10 @@ steps:
|
|||||||
image: signalwire/freeswitch-public-base
|
image: signalwire/freeswitch-public-base
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
|
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
|
||||||
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
|
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
|
||||||
|
- git clone https://github.com/freeswitch/sofia-sip.git
|
||||||
|
- cd sofia-sip && ./autogen.sh && ./configure.gnu && make -j`nproc` && make install && cd ..
|
||||||
- echo "applications/mod_test" >> modules.conf
|
- echo "applications/mod_test" >> modules.conf
|
||||||
- echo 'codecs/mod_openh264' >> modules.conf
|
- echo 'codecs/mod_openh264' >> modules.conf
|
||||||
- sed -i '/applications\\/mod_http_cache/s/^#//g' modules.conf
|
- sed -i '/applications\\/mod_http_cache/s/^#//g' modules.conf
|
||||||
@ -29,8 +31,9 @@ steps:
|
|||||||
image: signalwire/freeswitch-public-base
|
image: signalwire/freeswitch-public-base
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
|
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
|
||||||
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
|
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
|
||||||
|
- cd sofia-sip && make install && cd ..
|
||||||
- echo '#!/bin/bash\nmake -j`nproc --all` |& tee ./unit-tests-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./build-status.txt\n' > build.sh
|
- echo '#!/bin/bash\nmake -j`nproc --all` |& tee ./unit-tests-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./build-status.txt\n' > build.sh
|
||||||
- chmod +x build.sh
|
- chmod +x build.sh
|
||||||
- ./build.sh
|
- ./build.sh
|
||||||
@ -39,8 +42,9 @@ steps:
|
|||||||
image: signalwire/freeswitch-public-base
|
image: signalwire/freeswitch-public-base
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
|
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
|
||||||
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
|
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
|
||||||
|
- cd sofia-sip && make install && cd ..
|
||||||
- make install || true
|
- make install || true
|
||||||
- cd tests/unit
|
- cd tests/unit
|
||||||
- ./run-tests.sh
|
- ./run-tests.sh
|
||||||
@ -61,7 +65,7 @@ steps:
|
|||||||
from_secret: notify_env
|
from_secret: notify_env
|
||||||
commands:
|
commands:
|
||||||
- /root/unit-tests-notify.sh
|
- /root/unit-tests-notify.sh
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
@ -135,7 +139,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- /root/scan-build-notify.sh
|
- /root/scan-build-notify.sh
|
||||||
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
@ -145,6 +148,6 @@ trigger:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: bc24832140c40a8fde4bb04bd6bcce43029bf1641ed4acc3585fe52049ae24dc
|
hmac: 5d5cfb225053294d7cf1a4fed88eaf9a3a53c99a7bad4dc7164eece336c8861a
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user