Skip to content

Commit 90b843b

Browse files
authored
Add FreeBSD to CI (#6974)
This is using Cirrus, as none of the CI providers we already use support FreeBSD.
1 parent 3ce26d8 commit 90b843b

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.cirrus.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 --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+
# Specify opcache.preload_user as we're running as root.
23+
- echo opcache.preload_user=root >> /etc/php.d/opcache.ini
24+
tests_script:
25+
- export SKIP_IO_CAPTURE_TESTS=1
26+
- export CI_NO_IPV6=1
27+
- 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

ext/pcntl/tests/002.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pcntl: pcntl_sigprocmask(), pcntl_sigwaitinfo(), pcntl_sigtimedwait()
88
elseif (!defined('CLD_EXITED')) die('skip CLD_EXITED not defined');
99
elseif (getenv('SKIP_ASAN')) die('skip Fails intermittently under asan/msan');
1010
elseif (getenv("SKIP_REPEAT")) die("skip cannot be repeated");
11+
elseif (str_contains(PHP_OS, 'FreeBSD')) die('skip Results in parallel test runner hang on FreeBSD');
1112
?>
1213
--FILE--
1314
<?php

ext/standard/tests/streams/proc_open_bug51800_right.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--TEST--
22
Bug #51800 proc_open on Windows hangs forever, the right way to do it
3+
--SKIPIF--
4+
<?php
5+
if (strpos(PHP_OS, 'FreeBSD') !== false) {
6+
die("skip Results in parallel test runner hang on FreeBSD");
7+
}
8+
?>
39
--FILE--
410
<?php
511
$callee = __DIR__ . "/process_proc_open_bug51800_right.php";

0 commit comments

Comments
 (0)