mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-22 23:06:11 +01:00

install and use wait-for-it for functional tests (#373)

It might happen, when starting the fuctional test that the database service container is not ready yet. 

This patch provides an extra timeout to wait for the service to make sure the test does not fail because of missing database.
This commit is contained in:
Tobias Gaertner 2022-02-01 13:14:00 +01:00 committed by GitHub
parent c79986b614
commit c818970d6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 7 deletions

View file

@ -5,7 +5,7 @@
set -xe
apt-get update -yqq
apt-get install git libzip-dev unzip parallel libxml2-utils wget -yqq
apt-get install git libzip-dev unzip parallel libxml2-utils wget wait-for-it -yqq
php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/ --filename=composer
chmod +x /usr/local/bin/composer

View file

@ -9,4 +9,4 @@ func-php7.2-v10:
- php-lint-php7.2
script:
- composer require --no-progress typo3/minimal:"^10.4"
- composer ci:tests:functional
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional

View file

@ -10,4 +10,4 @@ func-php7.2-v9:
- php-lint-php7.2
script:
- composer require --no-progress typo3/minimal:"^9.5"
- composer ci:tests:functional
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional

View file

@ -9,4 +9,4 @@ func-php7.3-v10:
- php-lint-php7.3
script:
- composer require --no-progress typo3/minimal:"^10.4"
- composer ci:tests:functional
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional

View file

@ -10,4 +10,4 @@ func-php7.3-v9:
- php-lint-php7.3
script:
- composer require --no-progress typo3/minimal:"^9.5"
- composer ci:tests:functional
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional

View file

@ -9,4 +9,4 @@ func-php7.4-v10:
- php-lint-php7.4
script:
- composer require --no-progress typo3/minimal:"^10.4"
- composer ci:tests:functional
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional

View file

@ -10,4 +10,4 @@ func-php7.4-v9:
- php-lint-php7.4
script:
- composer require --no-progress typo3/minimal:"^9.5"
- composer ci:tests:functional
- wait-for-it mariadb:3306 -t 60 --strict -- composer ci:tests:functional