-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
631 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: apt | ||
runs: | ||
using: composite | ||
steps: | ||
- shell: bash | ||
run: | | ||
set -x | ||
sudo apt-get update | ||
sudo apt-get install \ | ||
bison \ | ||
re2c \ | ||
locales \ | ||
ldap-utils \ | ||
openssl \ | ||
slapd \ | ||
language-pack-de \ | ||
libgmp-dev \ | ||
libicu-dev \ | ||
libtidy-dev \ | ||
libenchant-dev \ | ||
libaspell-dev \ | ||
libpspell-dev \ | ||
libsasl2-dev \ | ||
libxpm-dev \ | ||
libzip-dev \ | ||
libsqlite3-dev \ | ||
libwebp-dev \ | ||
libonig-dev \ | ||
libkrb5-dev \ | ||
libgssapi-krb5-2 \ | ||
libcurl4-openssl-dev \ | ||
libxml2-dev \ | ||
libxslt1-dev \ | ||
libpq-dev \ | ||
libreadline-dev \ | ||
libldap2-dev \ | ||
libsodium-dev \ | ||
libargon2-0-dev \ | ||
libmm-dev \ | ||
libsnmp-dev \ | ||
postgresql \ | ||
postgresql-contrib \ | ||
snmpd \ | ||
snmp-mibs-downloader \ | ||
freetds-dev \ | ||
unixodbc-dev \ | ||
llvm \ | ||
libc-client-dev \ | ||
dovecot-core \ | ||
dovecot-pop3d \ | ||
dovecot-imapd \ | ||
sendmail \ | ||
firebird-dev \ | ||
liblmdb-dev \ | ||
libtokyocabinet-dev \ | ||
libdb-dev \ | ||
libqdbm-dev \ | ||
libjpeg-dev \ | ||
libpng-dev \ | ||
libfreetype6-dev | ||
mkdir /opt/oracle | ||
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip | ||
unzip instantclient-basiclite-linuxx64.zip | ||
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip | ||
unzip instantclient-sdk-linuxx64.zip | ||
mv instantclient_*_* /opt/oracle/instantclient | ||
# Interferes with libldap2 headers. | ||
rm /opt/oracle/instantclient/sdk/include/ldap.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: brew | ||
runs: | ||
using: composite | ||
steps: | ||
- shell: bash | ||
run: | | ||
set -x | ||
brew install \ | ||
pkg-config \ | ||
autoconf \ | ||
bison \ | ||
re2c | ||
brew install \ | ||
openssl@1.1 \ | ||
krb5 \ | ||
bzip2 \ | ||
enchant \ | ||
libffi \ | ||
libpng \ | ||
webp \ | ||
freetype \ | ||
intltool \ | ||
icu4c \ | ||
libiconv \ | ||
zlib \ | ||
t1lib \ | ||
gd \ | ||
libzip \ | ||
gmp \ | ||
tidyp \ | ||
libxml2 \ | ||
libxslt \ | ||
postgresql | ||
brew link icu4c gettext --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: ./configure | ||
inputs: | ||
configurationParameters: | ||
default: '' | ||
required: false | ||
runs: | ||
using: composite | ||
steps: | ||
- shell: bash | ||
run: | | ||
set -x | ||
export PATH="/usr/local/opt/bison/bin:$PATH" | ||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/openssl@1.1/lib/pkgconfig" | ||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/krb5/lib/pkgconfig" | ||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig" | ||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxml2/lib/pkgconfig" | ||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxslt/lib/pkgconfig" | ||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/zlib/lib/pkgconfig" | ||
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/icu4c/lib/pkgconfig" | ||
./buildconf --force | ||
./configure \ | ||
--enable-option-checking=fatal \ | ||
--prefix=/usr/local \ | ||
--enable-fpm \ | ||
--with-pdo-mysql=mysqlnd \ | ||
--with-mysqli=mysqlnd \ | ||
--with-pgsql=/usr/local/opt/libpq \ | ||
--with-pdo-pgsql=/usr/local/opt/libpq \ | ||
--with-pdo-sqlite \ | ||
--without-pear \ | ||
--enable-gd \ | ||
--with-jpeg \ | ||
--with-webp \ | ||
--with-freetype \ | ||
--enable-exif \ | ||
--with-zip \ | ||
--with-zlib \ | ||
--enable-soap \ | ||
--enable-xmlreader \ | ||
--with-xsl \ | ||
--with-tidy=/usr/local/opt/tidyp \ | ||
--with-libxml \ | ||
--enable-sysvsem \ | ||
--enable-sysvshm \ | ||
--enable-shmop \ | ||
--enable-pcntl \ | ||
--with-readline=/usr/local/opt/readline \ | ||
--enable-mbstring \ | ||
--with-curl \ | ||
--with-gettext=/usr/local/opt/gettext \ | ||
--enable-sockets \ | ||
--with-bz2=/usr/local/opt/bzip2 \ | ||
--with-openssl \ | ||
--with-gmp=/usr/local/opt/gmp \ | ||
--with-iconv=/usr/local/opt/libiconv \ | ||
--enable-bcmath \ | ||
--enable-calendar \ | ||
--enable-ftp \ | ||
--with-pspell=/usr/local/opt/aspell \ | ||
--with-kerberos \ | ||
--enable-sysvmsg \ | ||
--with-ffi \ | ||
--enable-zend-test \ | ||
--enable-intl \ | ||
--with-mhash \ | ||
--with-sodium \ | ||
--enable-dba \ | ||
--enable-werror \ | ||
--with-config-file-path=/etc \ | ||
--with-config-file-scan-dir=/etc/php.d \ | ||
${{ inputs.configurationParameters }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: ./configure | ||
inputs: | ||
configurationParameters: | ||
default: '' | ||
required: false | ||
runs: | ||
using: composite | ||
steps: | ||
- shell: bash | ||
run: | | ||
set -x | ||
./buildconf --force | ||
./configure \ | ||
--enable-option-checking=fatal \ | ||
--prefix=/usr \ | ||
--enable-phpdbg \ | ||
--enable-fpm \ | ||
--with-pdo-mysql=mysqlnd \ | ||
--with-mysqli=mysqlnd \ | ||
--with-pgsql \ | ||
--with-pdo-pgsql \ | ||
--with-pdo-sqlite \ | ||
--enable-intl \ | ||
--without-pear \ | ||
--enable-gd \ | ||
--with-jpeg \ | ||
--with-webp \ | ||
--with-freetype \ | ||
--with-xpm \ | ||
--enable-exif \ | ||
--with-zip \ | ||
--with-zlib \ | ||
--with-zlib-dir=/usr \ | ||
--enable-soap \ | ||
--enable-xmlreader \ | ||
--with-xsl \ | ||
--with-tidy \ | ||
--enable-sysvsem \ | ||
--enable-sysvshm \ | ||
--enable-shmop \ | ||
--enable-pcntl \ | ||
--with-readline \ | ||
--enable-mbstring \ | ||
--with-curl \ | ||
--with-gettext \ | ||
--enable-sockets \ | ||
--with-bz2 \ | ||
--with-openssl \ | ||
--with-gmp \ | ||
--enable-bcmath \ | ||
--enable-calendar \ | ||
--enable-ftp \ | ||
--with-pspell=/usr \ | ||
--with-enchant=/usr \ | ||
--with-kerberos \ | ||
--enable-sysvmsg \ | ||
--with-ffi \ | ||
--enable-zend-test \ | ||
--with-ldap \ | ||
--with-ldap-sasl \ | ||
--with-password-argon2 \ | ||
--with-mhash \ | ||
--with-sodium \ | ||
--enable-dba \ | ||
--with-cdb \ | ||
--enable-flatfile \ | ||
--enable-inifile \ | ||
--with-tcadb \ | ||
--with-lmdb \ | ||
--with-qdbm \ | ||
--with-snmp \ | ||
--with-unixODBC \ | ||
--with-imap \ | ||
--with-kerberos \ | ||
--with-imap-ssl \ | ||
--with-pdo-odbc=unixODBC,/usr \ | ||
--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient \ | ||
--with-oci8=shared,instantclient,/opt/oracle/instantclient \ | ||
--with-config-file-path=/etc \ | ||
--with-config-file-scan-dir=/etc/php.d \ | ||
${{ inputs.configurationParameters }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Install | ||
runs: | ||
using: composite | ||
steps: | ||
- shell: bash | ||
run: | | ||
set -x | ||
sudo make install | ||
sudo mkdir /etc/php.d | ||
sudo chmod 777 /etc/php.d | ||
echo mysqli.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/mysqli.ini | ||
echo pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock > /etc/php.d/pdo_mysql.ini | ||
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini | ||
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Create mssql container | ||
runs: | ||
using: composite | ||
steps: | ||
- shell: bash | ||
run: | | ||
set -x | ||
docker run \ | ||
-e "ACCEPT_EULA=Y" \ | ||
-e "SA_PASSWORD=<YourStrong@Passw0rd>" \ | ||
-p 1433:1433 \ | ||
--name sql1 \ | ||
-h sql1 \ | ||
-d mcr.microsoft.com/mssql/server:2019-CU8-ubuntu-16.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Setup | ||
runs: | ||
using: composite | ||
steps: | ||
- shell: bash | ||
run: | | ||
set -x | ||
sudo service mysql start | ||
sudo service postgresql start | ||
sudo service slapd start | ||
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS test" | ||
# Ensure local_infile tests can run. | ||
mysql -uroot -proot -e "SET GLOBAL local_infile = true" | ||
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';" | ||
sudo -u postgres psql -c "CREATE DATABASE test;" | ||
docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "create login pdo_test with password='password', check_policy=off; create user pdo_test for login pdo_test; grant alter, control to pdo_test;" | ||
sudo locale-gen de_DE | ||
./.github/scripts/setup-slapd.sh | ||
sudo cp ext/snmp/tests/snmpd.conf /etc/snmp | ||
sudo cp ext/snmp/tests/bigtest /etc/snmp | ||
sudo service snmpd restart | ||
sudo groupadd -g 5000 vmail | ||
sudo useradd -m -d /var/vmail -s /bin/false -u 5000 -g vmail vmail | ||
sudo cp ext/imap/tests/setup/dovecot.conf /etc/dovecot/dovecot.conf | ||
sudo cp ext/imap/tests/setup/dovecotpass /etc/dovecot/dovecotpass | ||
sudo service dovecot restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Test | ||
inputs: | ||
runTestsParameters: | ||
default: '' | ||
required: false | ||
runs: | ||
using: composite | ||
steps: | ||
- shell: bash | ||
run: | | ||
set -x | ||
export MYSQL_TEST_USER=root | ||
export MYSQL_TEST_PASSWD=root | ||
export PDO_MYSQL_TEST_DSN="mysql:host=localhost;dbname=test" | ||
export PDO_MYSQL_TEST_USER=root | ||
export PDO_MYSQL_TEST_PASS=root | ||
export PDO_DBLIB_TEST_DSN="dblib:host=127.0.0.1;dbname=master;version=7.0" | ||
export PDO_DBLIB_TEST_USER="pdo_test" | ||
export PDO_DBLIB_TEST_PASS="password" | ||
export SKIP_IO_CAPTURE_TESTS=1 | ||
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \ | ||
-j$(/usr/bin/nproc) \ | ||
-g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \ | ||
--offline \ | ||
--show-diff \ | ||
--show-slow 1000 \ | ||
--set-timeout 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Test | ||
inputs: | ||
runTestsParameters: | ||
default: '' | ||
required: false | ||
runs: | ||
using: composite | ||
steps: | ||
- shell: bash | ||
run: | | ||
set -x | ||
export SKIP_IO_CAPTURE_TESTS=1 | ||
export CI_NO_IPV6=1 | ||
sapi/cli/php run-tests.php -P -q ${{ inputs.runTestsParameters }} \ | ||
-j$(sysctl -n hw.ncpu) \ | ||
-g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \ | ||
--offline \ | ||
--show-diff \ | ||
--show-slow 1000 \ | ||
--set-timeout 120 |
Oops, something went wrong.