@@ -4,48 +4,67 @@ name: unit-tests
4
4
5
5
steps :
6
6
- name : bootstrap
7
- image : signalwire/freeswitch-public-base
7
+ image : signalwire/freeswitch-public-base:bullseye
8
8
pull : always
9
9
commands :
10
10
- cat /proc/sys/kernel/core_pattern
11
11
- ./bootstrap.sh -j
12
12
13
13
- name : configure
14
- image : signalwire/freeswitch-public-base
14
+ image : signalwire/freeswitch-public-base:bullseye
15
15
pull : always
16
+ environment :
17
+ REPOTOKEN :
18
+ from_secret : repotoken
16
19
commands :
20
+ - echo "machine freeswitch.signalwire.com password $REPOTOKEN" > /etc/apt/auth.conf
17
21
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
18
22
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
23
+ - export REPOTOKEN=''
24
+ - rm -rf /etc/apt/auth.conf
19
25
- git clone https://github.com/freeswitch/sofia-sip.git
20
26
- cd sofia-sip && ./autogen.sh && ./configure.gnu && make -j`nproc` && make install && cd ..
21
27
- echo 'codecs/mod_openh264' >> modules.conf
22
28
- sed -i '/applications\\/mod_http_cache/s/^#//g' modules.conf
23
29
- sed -i '/event_handlers\\/mod_rayo/s/^#//g' modules.conf
24
30
- sed -i '/formats\\/mod_opusfile/s/^#//g' modules.conf
25
31
- sed -i '/languages\\/mod_lua/s/^#//g' modules.conf
26
- - export ASAN_OPTIONS=log_path=stdout:disable_coredump=0:unmap_shadow_on_exit=1;
27
- - ./configure --enable-address-sanitizer
32
+ - export ASAN_OPTIONS=log_path=stdout:disable_coredump=0:unmap_shadow_on_exit=1:fast_unwind_on_malloc=0
33
+ - ./configure --enable-address-sanitizer --enable-fake-dlclose
28
34
29
35
- name : build
30
- image : signalwire/freeswitch-public-base
36
+ image : signalwire/freeswitch-public-base:bullseye
31
37
pull : always
38
+ environment :
39
+ REPOTOKEN :
40
+ from_secret : repotoken
32
41
commands :
42
+ - echo "machine freeswitch.signalwire.com password $REPOTOKEN" > /etc/apt/auth.conf
33
43
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
34
44
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
45
+ - export REPOTOKEN=''
46
+ - rm -rf /etc/apt/auth.conf
35
47
- cd sofia-sip && make install && cd ..
36
48
- echo '#!/bin/bash\nmake -j`nproc --all` |& tee ./unit-tests-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./build-status.txt\n' > build.sh
37
49
- chmod +x build.sh
38
50
- ./build.sh
39
51
40
52
- name : run-tests
41
- image : signalwire/freeswitch-public-base
53
+ image : signalwire/freeswitch-public-base:bullseye
42
54
pull : always
55
+ environment :
56
+ REPOTOKEN :
57
+ from_secret : repotoken
43
58
commands :
59
+ - echo "machine freeswitch.signalwire.com password $REPOTOKEN" > /etc/apt/auth.conf
44
60
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
45
61
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
62
+ - export REPOTOKEN=''
63
+ - rm -rf /etc/apt/auth.conf
46
64
- cd sofia-sip && make install && cd ..
47
65
- make install || true
48
66
- cd tests/unit
67
+ - export ASAN_OPTIONS=log_path=stdout:disable_coredump=0:unmap_shadow_on_exit=1:fast_unwind_on_malloc=0
49
68
- ./run-tests.sh
50
69
- ls -la /cores
51
70
- mkdir logs && (mv log_run-tests_*.html logs || true) && (mv backtrace_*.txt logs || true)
@@ -78,17 +97,23 @@ name: scan-build
78
97
79
98
steps :
80
99
- name : bootstrap
81
- image : signalwire/freeswitch-public-base
100
+ image : signalwire/freeswitch-public-base:bullseye
82
101
pull : always
83
102
commands :
84
103
- ./bootstrap.sh -j
85
104
86
105
- name : configure
87
- image : signalwire/freeswitch-public-base
106
+ image : signalwire/freeswitch-public-base:bullseye
88
107
pull : always
108
+ environment :
109
+ REPOTOKEN :
110
+ from_secret : repotoken
89
111
commands :
112
+ - echo "machine freeswitch.signalwire.com password $REPOTOKEN" > /etc/apt/auth.conf
90
113
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
91
114
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
115
+ - export REPOTOKEN=''
116
+ - rm -rf /etc/apt/auth.conf
92
117
- cp build/modules.conf.most modules.conf
93
118
# Enable/Uncomment mods
94
119
- echo 'codecs/mod_openh264' >> modules.conf
@@ -115,13 +140,19 @@ steps:
115
140
- ./configure
116
141
117
142
- name : scan-build
118
- image : signalwire/freeswitch-public-base
143
+ image : signalwire/freeswitch-public-base:bullseye
119
144
pull : always
145
+ environment :
146
+ REPOTOKEN :
147
+ from_secret : repotoken
120
148
commands :
149
+ - echo "machine freeswitch.signalwire.com password $REPOTOKEN" > /etc/apt/auth.conf
121
150
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
122
151
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
152
+ - export REPOTOKEN=''
153
+ - rm -rf /etc/apt/auth.conf
123
154
- mkdir -p scan-build
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
155
+ - echo '#!/bin/bash\nscan-build-11 -o ./scan-build/ make -j`nproc --all` |& tee ./scan-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./scan-build-status.txt\n' > scan.sh
125
156
- chmod +x scan.sh
126
157
- ./scan.sh
127
158
- exitstatus=`cat ./scan-build-status.txt`
@@ -147,6 +178,6 @@ trigger:
147
178
148
179
---
149
180
kind : signature
150
- hmac : a85b0db203d2c9a71c3e4a63a46b5513fbdb3b8f5135e21d0fe0992f33626824
181
+ hmac : 780e4aaee61e3683ea4a8d6fe5131f7c9e62ebad727546013f18df0fca80d705
151
182
152
183
...
0 commit comments