mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 00:36:13 +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:
parent
c79986b614
commit
c818970d6e
7 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue