Skip to content

Commit c5d4a42

Browse files
committed
Quick test to run ASAN build on Cirrus
1 parent ec6893e commit c5d4a42

File tree

1 file changed

+155
-4
lines changed

1 file changed

+155
-4
lines changed

.cirrus.yml

Lines changed: 155 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,163 @@
11
env:
22
CIRRUS_CLONE_DEPTH: 1
3-
ARCH: amd64
43

5-
freebsd_instance:
6-
image_family: freebsd-13-0
4+
asan_task:
5+
name: ASAN_DEBUG_NTS
6+
container:
7+
image: gcc:latest
8+
install_script:
9+
- sudo apt-get update
10+
- sudo apt-get install \
11+
bison \
12+
re2c \
13+
locales \
14+
ldap-utils \
15+
openssl \
16+
slapd \
17+
language-pack-de \
18+
libgmp-dev \
19+
libicu-dev \
20+
libtidy-dev \
21+
libenchant-dev \
22+
libaspell-dev \
23+
libpspell-dev \
24+
libsasl2-dev \
25+
libxpm-dev \
26+
libzip-dev \
27+
libsqlite3-dev \
28+
libwebp-dev \
29+
libonig-dev \
30+
libkrb5-dev \
31+
libgssapi-krb5-2 \
32+
libcurl4-openssl-dev \
33+
libxml2-dev \
34+
libxslt1-dev \
35+
libpq-dev \
36+
libreadline-dev \
37+
libldap2-dev \
38+
libsodium-dev \
39+
libargon2-0-dev \
40+
libmm-dev \
41+
libsnmp-dev \
42+
postgresql \
43+
postgresql-contrib \
44+
snmpd \
45+
snmp-mibs-downloader \
46+
freetds-dev \
47+
unixodbc-dev \
48+
llvm \
49+
libc-client-dev \
50+
dovecot-core \
51+
dovecot-pop3d \
52+
dovecot-imapd \
53+
sendmail \
54+
firebird-dev \
55+
liblmdb-dev \
56+
libtokyocabinet-dev \
57+
libdb-dev \
58+
libqdbm-dev \
59+
libjpeg-dev \
60+
libpng-dev \
61+
libfreetype6-dev
62+
build_script:
63+
- ./buildconf -f
64+
- ./configure \
65+
--enable-option-checking=fatal \
66+
--prefix=/usr \
67+
--enable-phpdbg \
68+
--enable-fpm \
69+
--with-pdo-mysql=mysqlnd \
70+
--with-mysqli=mysqlnd \
71+
--with-pgsql \
72+
--with-pdo-pgsql \
73+
--with-pdo-sqlite \
74+
--enable-intl \
75+
--without-pear \
76+
--enable-gd \
77+
--with-jpeg \
78+
--with-webp \
79+
--with-freetype \
80+
--with-xpm \
81+
--enable-exif \
82+
--with-zip \
83+
--with-zlib \
84+
--with-zlib-dir=/usr \
85+
--enable-soap \
86+
--enable-xmlreader \
87+
--with-xsl \
88+
--with-tidy \
89+
--enable-sysvsem \
90+
--enable-sysvshm \
91+
--enable-shmop \
92+
--enable-pcntl \
93+
--with-readline \
94+
--enable-mbstring \
95+
--with-curl \
96+
--with-gettext \
97+
--enable-sockets \
98+
--with-bz2 \
99+
--with-openssl \
100+
--with-gmp \
101+
--enable-bcmath \
102+
--enable-calendar \
103+
--enable-ftp \
104+
--with-pspell=/usr \
105+
--with-enchant=/usr \
106+
--with-kerberos \
107+
--enable-sysvmsg \
108+
--with-ffi \
109+
--enable-zend-test \
110+
--enable-dl-test=shared \
111+
--with-ldap \
112+
--with-ldap-sasl \
113+
--with-password-argon2 \
114+
--with-mhash \
115+
--with-sodium \
116+
--enable-dba \
117+
--with-cdb \
118+
--enable-flatfile \
119+
--enable-inifile \
120+
--with-tcadb \
121+
--with-lmdb \
122+
--with-qdbm \
123+
--with-snmp \
124+
--with-unixODBC \
125+
--with-imap \
126+
--with-kerberos \
127+
--with-imap-ssl \
128+
--with-pdo-odbc=unixODBC,/usr \
129+
--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient \
130+
--with-oci8=shared,instantclient,/opt/oracle/instantclient \
131+
--with-config-file-path=/etc \
132+
--with-config-file-scan-dir=/etc/php.d \
133+
--with-pdo-firebird \
134+
--with-pdo-dblib \
135+
--enable-werror \
136+
CFLAGS='-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC' LDFLAGS='-fsanitize=undefined,address'
137+
- make -j2
138+
- make install
139+
- echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
140+
- echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
141+
# Specify opcache.preload_user as we're running as root.
142+
- echo opcache.preload_user=root >> /etc/php.d/opcache.ini
143+
tests_script:
144+
- export SKIP_IO_CAPTURE_TESTS=1
145+
- export CI_NO_IPV6=1
146+
- sapi/cli/php run-tests.php \
147+
-P -q -j2 \
148+
-g FAIL,BORK,LEAK,XLEAK \
149+
--no-progress \
150+
--offline \
151+
--show-diff \
152+
--show-slow 1000 \
153+
--set-timeout 120 \
154+
-d zend_extension=opcache.so \
155+
--asan
7156

8-
task:
157+
freebsd_task:
9158
name: FREEBSD_DEBUG_NTS
159+
freebsd_instance:
160+
image_family: freebsd-13-0
10161
install_script:
11162
#- sed -i -e 's/quarterly/latest/g' /etc/pkg/FreeBSD.conf
12163
#- pkg upgrade -y

0 commit comments

Comments
 (0)