[ticket/16659] First test run with all current tests

PHPBB3-16659
This commit is contained in:
Marc Alexander 2020-12-05 14:50:46 +01:00
parent 4729be9e96
commit d6e1989e1f
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 39 additions and 36 deletions

View file

@ -17,42 +17,43 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
- php: 7.1 - php: '7.1'
db: "none" db: "none"
NOTESTS: 1 NOTESTS: 1
- php: 7.1 - php: '7.1'
db: "mariadb:10.1" db: "mariadb:10.1"
# - php: 7.1 - php: '7.1'
# db: "mariadb:10.2" db: "mariadb:10.2"
# - php: 7.1 - php: '7.1'
# db: "mariadb:10.3" db: "mariadb:10.3"
# - php: 7.1 - php: '7.1'
# db: "mariadb:10.4" db: "mariadb:10.4"
# - php: 7.1 - php: '7.1'
# db: "mariadb:10.5" db: "mariadb:10.5"
# - php: 7.1 - php: '7.1'
# db: "postgres:9.5" db: "postgres:9.5"
# - php: 7.1 - php: '7.1'
# db: "postgres:10" db: "postgres:10"
# - php: 7.1 - php: '7.1'
# db: "postgres:11" db: "postgres:11"
# - php: 7.1 - php: '7.1'
# db: "postgres:12" db: "postgres:12"
# - php: 7.1 - php: '7.1'
# db: "postgres:13" db: "postgres:13"
# - php: 7.1 - php: '7.1'
# db: "sqlite3" db: "sqlite3"
# - php: 7.1 - php: '7.1'
# db: "mysql:5.6" db: "mysql:5.6"
# - php: 7.1 MYISAM: 1
# db: "mysql:5.7" - php: '7.1'
# - php: 7.2 db: "mysql:5.7"
# db: "mysql:5.7" - php: '7.2'
# - php: 7.3 db: "mysql:5.7"
# db: "mysql:5.7" - php: '7.3'
# - php: 7.4 db: "mysql:5.7"
# db: "mysql:5.7" - php: '7.4'
- php: 7.4 db: "mysql:5.7"
- php: '7.4'
db: "mysql:8.0" db: "mysql:8.0"
- php: '8.0' - php: '8.0'
db: "mysql:5.7" db: "mysql:5.7"
@ -132,8 +133,9 @@ jobs:
DB: ${{steps.database-type.outputs.db}} DB: ${{steps.database-type.outputs.db}}
PHP_VERSION: ${{ matrix.php }} PHP_VERSION: ${{ matrix.php }}
NOTESTS: ${{ matrix.NOTESTS != 1 && '0' || '1' }} NOTESTS: ${{ matrix.NOTESTS != 1 && '0' || '1' }}
MYISAM: ${{ matrix.MYISAM != 1 && '0' || '1' }}
run: | run: |
travis/setup-database.sh $DB $PHP_VERSION $NOTESTS travis/setup-database.sh $DB $PHP_VERSION $NOTESTS $MYISAM
- name: Phing sniff - name: Phing sniff
env: env:

View file

@ -14,6 +14,7 @@ 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
@ -26,7 +27,7 @@ then
psql -c 'create database phpbb_tests;' -U postgres psql -c 'create database phpbb_tests;' -U postgres
fi fi
if [ "$TRAVIS_PHP_VERSION" == "5.6" -a "$DB" == "mysql" ] if [ "$MYISAM" == '1' ]
then then
mysql -e 'SET GLOBAL storage_engine=MyISAM;' mysql -h 127.0.0.1 -u root -e 'SET GLOBAL storage_engine=MyISAM;'
fi fi