Skip to content

Commit 3fcd39f

Browse files
committed
Test mysqli, pdo_mysql and mbstring extensions
1 parent 9f58630 commit 3fcd39f

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.cirrus.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ asan_task:
55
name: ASAN_DEBUG_NTS
66
container:
77
image: gcc:latest
8+
additional_containers:
9+
- name: mysql
10+
image: mysql:latest
11+
port: 3306
12+
env:
13+
MYSQL_ROOT_PASSWORD: "root"
14+
MYSQL_DATABASE: "test"
815
install_script:
916
- apt-get update -y
1017
- >-
@@ -70,8 +77,8 @@ asan_task:
7077
--prefix=/usr
7178
--enable-phpdbg
7279
--enable-fpm
73-
`#--with-pdo-mysql=mysqlnd`
74-
`#--with-mysqli=mysqlnd`
80+
--with-pdo-mysql=mysqlnd
81+
--with-mysqli=mysqlnd
7582
`#--with-pgsql`
7683
`#--with-pdo-pgsql`
7784
`#--with-pdo-sqlite`
@@ -95,7 +102,7 @@ asan_task:
95102
--enable-shmop
96103
--enable-pcntl
97104
--with-readline
98-
`#--enable-mbstring`
105+
--enable-mbstring
99106
--with-curl
100107
--with-gettext
101108
--enable-sockets
@@ -148,6 +155,12 @@ asan_task:
148155
tests_script:
149156
- export SKIP_IO_CAPTURE_TESTS=1
150157
- export CI_NO_IPV6=1
158+
- export MYSQL_TEST_HOST=mysql
159+
- export MYSQL_TEST_USER=root
160+
- export MYSQL_TEST_PASSWD=root
161+
- export PDO_MYSQL_TEST_DSN="mysql:host=mysql;dbname=test"
162+
- export PDO_MYSQL_TEST_USER=root
163+
- export PDO_MYSQL_TEST_PASS=root
151164
- >-
152165
sapi/cli/php run-tests.php
153166
-P -q -x -j2

0 commit comments

Comments
 (0)