forked from Mirrors/freeswitch
[Unit-tests] Build sofia-sip on the fly on Drone CI so backtraces are more informative in ASAN reports.
This commit is contained in:
parent
4c04914003
commit
f631ac800c
21
.drone.yml
21
.drone.yml
|
@ -14,8 +14,10 @@ steps:
|
|||
image: signalwire/freeswitch-public-base
|
||||
pull: always
|
||||
commands:
|
||||
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
|
||||
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
|
||||
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-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 'codecs/mod_openh264' >> modules.conf
|
||||
- sed -i '/applications\\/mod_http_cache/s/^#//g' modules.conf
|
||||
|
@ -29,8 +31,9 @@ steps:
|
|||
image: signalwire/freeswitch-public-base
|
||||
pull: always
|
||||
commands:
|
||||
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
|
||||
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
|
||||
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-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
|
||||
- chmod +x build.sh
|
||||
- ./build.sh
|
||||
|
@ -39,8 +42,9 @@ steps:
|
|||
image: signalwire/freeswitch-public-base
|
||||
pull: always
|
||||
commands:
|
||||
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
|
||||
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
|
||||
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
|
||||
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
|
||||
- cd sofia-sip && make install && cd ..
|
||||
- make install || true
|
||||
- cd tests/unit
|
||||
- ./run-tests.sh
|
||||
|
@ -61,7 +65,7 @@ steps:
|
|||
from_secret: notify_env
|
||||
commands:
|
||||
- /root/unit-tests-notify.sh
|
||||
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
|
@ -135,7 +139,6 @@ steps:
|
|||
commands:
|
||||
- /root/scan-build-notify.sh
|
||||
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
|
@ -145,6 +148,6 @@ trigger:
|
|||
|
||||
---
|
||||
kind: signature
|
||||
hmac: bc24832140c40a8fde4bb04bd6bcce43029bf1641ed4acc3585fe52049ae24dc
|
||||
hmac: 5d5cfb225053294d7cf1a4fed88eaf9a3a53c99a7bad4dc7164eece336c8861a
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue