mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 20:36:12 +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
|
set -xe
|
||||||
|
|
||||||
apt-get update -yqq
|
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
|
php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/ --filename=composer
|
||||||
chmod +x /usr/local/bin/composer
|
chmod +x /usr/local/bin/composer
|
||||||
|
|
|
@ -9,4 +9,4 @@ func-php7.2-v10:
|
||||||
- php-lint-php7.2
|
- php-lint-php7.2
|
||||||
script:
|
script:
|
||||||
- composer require --no-progress typo3/minimal:"^10.4"
|
- 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
|
- php-lint-php7.2
|
||||||
script:
|
script:
|
||||||
- composer require --no-progress typo3/minimal:"^9.5"
|
- 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
|
- php-lint-php7.3
|
||||||
script:
|
script:
|
||||||
- composer require --no-progress typo3/minimal:"^10.4"
|
- 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
|
- php-lint-php7.3
|
||||||
script:
|
script:
|
||||||
- composer require --no-progress typo3/minimal:"^9.5"
|
- 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
|
- php-lint-php7.4
|
||||||
script:
|
script:
|
||||||
- composer require --no-progress typo3/minimal:"^10.4"
|
- 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
|
- php-lint-php7.4
|
||||||
script:
|
script:
|
||||||
- composer require --no-progress typo3/minimal:"^9.5"
|
- 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