Skip to content

Commit 7541828

Browse files
committed
WIP: adding FreeBSD to CI attempt.
1 parent 4fe07d4 commit 7541828

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

.cirrus.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
env:
2+
CIRRUS_CLONE_DEPTH: 1
3+
ARCH: amd64
4+
5+
freebsd_instance:
6+
image_family: freebsd-13-0
7+
8+
task:
9+
name: FREEBSD_DEBUG_NTS
10+
install_script:
11+
- sed -i -e 's/quarterly/latest/g' /etc/pkg/FreeBSD.conf
12+
- pkg upgrade -y
13+
- pkg install -y autoconf bison gmake re2c icu libiconv png freetype2 enchant2 bzip2 krb5 t1lib gmp tidyp libsodium libzip libxml2 libxslt openssl oniguruma pkgconf webp
14+
script:
15+
- ./buildconf -f
16+
- ./configure --prefix=/usr/local --enable-debug --enable-option-checking=fatal --enable-fpm --with-pdo-sqlite --without-pear --with-bz2 --with-jpeg --with-webp --with-freetype --enable-gd --enable-exif --with-zip --with-zlib --enable-soap --enable-xmlreader --with-xsl --with-libxml --enable-shmop --enable-pcntl --enable-mbstring --with-curl --enable-sockets --with-openssl=/usr/local --with-iconv=/usr/local --enable-bcmath --enable-calendar --enable-ftp --with-kerberos --with-ffi --enable-zend-test --enable-intl --with-mhash --with-sodium --enable-werror --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d
17+
- gmake -j2
18+
- mkdir /etc/php.d
19+
- gmake install
20+
- echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
21+
- echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
22+
tests_script:
23+
- export TEST_PHP_JUNIT=junit.xml
24+
- export REPORT_EXIT_STATUS=no
25+
- export SKIP_IO_CAPTURE_TESTS=1
26+
- export CI_NO_IPV6=1
27+
- rm -rf junit.xml | true
28+
- sapi/cli/php run-tests.php -P -q -j2 -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP --offline --show-diff --show-slow 1000 --set-timeout 120 -d zend_extension=opcache.so -d opcache.enable_cli=1 -d opcache.protect_memory=1

ext/standard/tests/streams/proc_open_bug51800.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Bug #51800 proc_open on Windows hangs forever
66
if (getenv("SKIP_SLOW_TESTS")) {
77
die("skip slow test");
88
}
9+
require_once __DIR__ . 'skipif.inc';
910
?>
1011
--XFAIL--
1112
pipes have to be read/written simultaneously

ext/standard/tests/streams/proc_open_bug51800_right.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #51800 proc_open on Windows hangs forever, the right way to do it
3+
--SKIPIF--
4+
<?php include 'skipif.inc'; ?>
35
--FILE--
46
<?php
57
$callee = __DIR__ . "/process_proc_open_bug51800_right.php";

ext/standard/tests/streams/skipif.inc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
if (strpos(PHP_OS, 'FreeBSD') !== false) {
3+
die("skip for FreeBSD");
4+
}
5+
?>

0 commit comments

Comments
 (0)