[ticket/16659] Undo changes to travis folder

Github actions are using their own scripts etc.

PHPBB3-16659
This commit is contained in:
Marc Alexander 2020-12-19 21:41:54 +01:00
parent 9762cbf94f
commit 8536c437c4
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
8 changed files with 27 additions and 70 deletions

View file

@ -4,13 +4,13 @@ include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/inetorgperson.schema include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/nis.schema include /etc/ldap/schema/nis.schema
pidfile /var/tmp/slapd/slapd.pid pidfile /tmp/slapd/slapd.pid
argsfile /var/tmp/slapd/slapd.args argsfile /tmp/slapd/slapd.args
modulepath /usr/lib/openldap modulepath /usr/lib/openldap
database ldif database ldif
directory /var/tmp/slapd directory /tmp/slapd
suffix "dc=example,dc=com" suffix "dc=example,dc=com"
rootdn "cn=admin,dc=example,dc=com" rootdn "cn=admin,dc=example,dc=com"

View file

@ -1,41 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="true"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
bootstrap="../tests/bootstrap.php">
<testsuites>
<testsuite name="phpBB Test Suite">
<directory suffix="_test.php">../tests</directory>
<exclude>../tests/functional</exclude>
<exclude>../tests/lint_test.php</exclude>
</testsuite>
<testsuite name="phpBB Functional Tests">
<directory suffix="_test.php">../tests/functional</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>slow</group>
</exclude>
</groups>
<php>
<server name="PHPBB_TEST_DBMS" value="phpbb\db\driver\mssqlnative" />
<server name="PHPBB_TEST_DBHOST" value="127.0.0.1" />
<server name="PHPBB_TEST_DBPORT" value="" />
<server name="PHPBB_TEST_DBNAME" value="phpbb_tests" />
<server name="PHPBB_TEST_DBUSER" value="sa" />
<server name="PHPBB_TEST_DBPASSWD" value="Pssw0rd_12" />
<server name="PHPBB_TEST_REDIS_HOST" value="localhost" />
<server name="PHPBB_TEST_MEMCACHED_HOST" value="localhost" />
<server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/>
<server name="PHPBB_FUNCTIONAL_URL" value="http://localhost/" />
</php>
</phpunit>

View file

@ -32,7 +32,7 @@
<server name="PHPBB_TEST_DBPORT" value="5432" /> <server name="PHPBB_TEST_DBPORT" value="5432" />
<server name="PHPBB_TEST_DBNAME" value="phpbb_tests" /> <server name="PHPBB_TEST_DBNAME" value="phpbb_tests" />
<server name="PHPBB_TEST_DBUSER" value="postgres" /> <server name="PHPBB_TEST_DBUSER" value="postgres" />
<server name="PHPBB_TEST_DBPASSWD" value="postgres" /> <server name="PHPBB_TEST_DBPASSWD" value="" />
<server name="PHPBB_TEST_REDIS_HOST" value="localhost" /> <server name="PHPBB_TEST_REDIS_HOST" value="localhost" />
<server name="PHPBB_TEST_MEMCACHED_HOST" value="localhost" /> <server name="PHPBB_TEST_MEMCACHED_HOST" value="localhost" />
<server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/> <server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/>

View file

@ -14,7 +14,6 @@ set -x
DB=$1 DB=$1
TRAVIS_PHP_VERSION=$2 TRAVIS_PHP_VERSION=$2
NOTESTS=$3 NOTESTS=$3
MYISAM=$4
if [ "$NOTESTS" == '1' ] if [ "$NOTESTS" == '1' ]
then then
@ -27,7 +26,12 @@ then
psql -c 'create database phpbb_tests;' -U postgres psql -c 'create database phpbb_tests;' -U postgres
fi fi
if [ "$MYISAM" == '1' ] if [ "$TRAVIS_PHP_VERSION" == "5.6" -a "$DB" == "mysqli" ]
then then
mysql -h 127.0.0.1 -u root -e 'SET GLOBAL storage_engine=MyISAM;' mysql -e 'SET GLOBAL storage_engine=MyISAM;'
fi
if [ "$DB" == "mysqli" -o "$DB" == "mariadb" ]
then
mysql -e 'create database IF NOT EXISTS phpbb_tests;'
fi fi

View file

@ -15,10 +15,9 @@ SLOWTESTS=$1
if [ "$SLOWTESTS" == '1' ] if [ "$SLOWTESTS" == '1' ]
then then
sudo apt-get -y install ldap-utils slapd sudo apt-get -y install ldap-utils slapd php-ldap
mkdir /var/tmp/slapd mkdir /tmp/slapd
cp travis/ldap/slapd.conf /var/tmp/slapd/slapd.conf slapd -f travis/ldap/slapd.conf -h ldap://localhost:3389 &
slapd -d 256 -d 128 -f /var/tmp/slapd/slapd.conf -h ldap://localhost:3389 &
sleep 3 sleep 3
ldapadd -h localhost:3389 -D "cn=admin,dc=example,dc=com" -w adminadmin -f travis/ldap/base.ldif ldapadd -h localhost:3389 -D "cn=admin,dc=example,dc=com" -w adminadmin -f travis/ldap/base.ldif
fi fi

View file

@ -22,11 +22,21 @@ then
travis/setup-unbuffer.sh travis/setup-unbuffer.sh
fi fi
if [ "$DB" == "mariadb" ]
then
travis/setup-mariadb.sh
fi
if [ "$MYSQL8" == '1' ] if [ "$MYSQL8" == '1' ]
then then
travis/setup-mysql8.sh travis/setup-mysql8.sh
fi fi
if [ "$NOTESTS" != '1' ]
then
travis/setup-php-extensions.sh
fi
if [ "$NOTESTS" != '1' ] if [ "$NOTESTS" != '1' ]
then then
travis/setup-webserver.sh travis/setup-webserver.sh

View file

@ -12,7 +12,7 @@ set -e
set -x set -x
sudo apt-get update sudo apt-get update
sudo apt-get install -y nginx coreutils sudo apt-get install -y nginx realpath
sudo service nginx stop sudo service nginx stop
@ -25,28 +25,13 @@ APP_SOCK=$(realpath "$DIR")/php-app.sock
NGINX_PHP_CONF="$DIR/nginx-php.conf" NGINX_PHP_CONF="$DIR/nginx-php.conf"
# php-fpm # php-fpm
PHP_FPM_BIN="/usr/sbin/php-fpm$PHP_VERSION" PHP_FPM_BIN="$HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/sbin/php-fpm"
PHP_FPM_CONF="$DIR/php-fpm.conf" PHP_FPM_CONF="$DIR/php-fpm.conf"
if [ ! -f $PHP_FPM_BIN ] && [ "$PHP_VERSION" == '8.1' ] && [ -f "/usr/bin/php-fpm" ]
then
PHP_FPM_BIN="/usr/bin/php-fpm"
fi
if [ ! -f $PHP_FPM_BIN ] && [ "$PHP_VERSION" != '8.1' ]
then
sudo apt-get install php$PHP_VERSION-fpm php$PHP_VERSION-cli php$PHP_VERSION-dom \
php$PHP_VERSION-curl php$PHP_VERSION-xml php$PHP_VERSION-mbstring \
php$PHP_VERSION-zip php$PHP_VERSION-mysql php$PHP_VERSION-sqlite3 \
php$PHP_VERSION-intl php$PHP_VERSION-gd php$PHP_VERSION-pgsql
sudo service php$PHP_VERSION-fpm start
sudo service php$PHP_VERSION-fpm status
fi
echo " echo "
[global] [global]
[ci] [travis]
user = $USER user = $USER
group = $USER group = $USER
listen = $APP_SOCK listen = $APP_SOCK