mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 03:56:12 +01:00
[TASK] Add test stage to gitlab CI (#103)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
This commit is contained in:
parent
c8d2cf9849
commit
ac59a7ffd2
2 changed files with 141 additions and 2 deletions
|
@ -5,9 +5,9 @@
|
|||
set -xe
|
||||
|
||||
apt-get update -yqq
|
||||
apt-get install git libzip-dev unzip libxml2-utils wget -yqq
|
||||
apt-get install git libzip-dev unzip parallel libxml2-utils wget -yqq
|
||||
|
||||
php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/ --filename=composer
|
||||
chmod +x /usr/local/bin/composer
|
||||
|
||||
docker-php-ext-install zip
|
||||
docker-php-ext-install pdo_mysql zip mysqli
|
||||
|
|
|
@ -15,6 +15,13 @@ default:
|
|||
before_script:
|
||||
- bash .gitlab/build/docker_install.sh > /dev/null
|
||||
|
||||
variables:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
typo3DatabaseName: typo3
|
||||
typo3DatabaseHost: mariadb
|
||||
typo3DatabaseUsername: root
|
||||
typo3DatabasePassword: root
|
||||
|
||||
build-composer-dependencies:
|
||||
stage: build
|
||||
needs: []
|
||||
|
@ -84,6 +91,138 @@ xliff-lint:
|
|||
- xmllint --schema ./xliff-core-1.2-strict.xsd
|
||||
--noout $(find Resources -name '*.xlf')
|
||||
|
||||
unit-php7.2-v10:
|
||||
image: php:7.2
|
||||
stage: test
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.2
|
||||
script:
|
||||
- composer ci:tests:unit
|
||||
|
||||
unit-php7.3-v10:
|
||||
image: php:7.3
|
||||
stage: test
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.3
|
||||
script:
|
||||
- composer ci:tests:unit
|
||||
|
||||
unit-php7.4-v10:
|
||||
image: php:7.4
|
||||
stage: test
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.4
|
||||
script:
|
||||
- composer ci:tests:unit
|
||||
|
||||
func-php7.2-v10:
|
||||
image: php:7.2
|
||||
services:
|
||||
- mariadb:10
|
||||
stage: test
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.2
|
||||
script:
|
||||
- composer ci:tests:functional
|
||||
|
||||
func-php7.3-v10:
|
||||
image: php:7.3
|
||||
services:
|
||||
- mariadb:10
|
||||
stage: test
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.3
|
||||
script:
|
||||
- composer ci:tests:functional
|
||||
|
||||
func-php7.4-v10:
|
||||
image: php:7.4
|
||||
services:
|
||||
- mariadb:10
|
||||
stage: test
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.4
|
||||
script:
|
||||
- composer ci:tests:functional
|
||||
|
||||
unit-php7.2-v9:
|
||||
image: php:7.2
|
||||
stage: test
|
||||
dependencies: []
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.2
|
||||
script:
|
||||
- composer require typo3/minimal:"^9.5"
|
||||
- composer ci:tests:unit
|
||||
|
||||
unit-php7.3-v9:
|
||||
image: php:7.3
|
||||
stage: test
|
||||
dependencies: []
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.3
|
||||
script:
|
||||
- composer require typo3/minimal:"^9.5"
|
||||
- composer ci:tests:unit
|
||||
|
||||
unit-php7.4-v9:
|
||||
image: php:7.4
|
||||
stage: test
|
||||
dependencies: []
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.4
|
||||
script:
|
||||
- composer require typo3/minimal:"^9.5"
|
||||
- composer ci:tests:unit
|
||||
|
||||
func-php7.2-v9:
|
||||
image: php:7.2
|
||||
services:
|
||||
- mariadb:10
|
||||
stage: test
|
||||
dependencies: []
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.2
|
||||
script:
|
||||
- composer require typo3/minimal:"^9.5"
|
||||
- composer ci:tests:functional
|
||||
|
||||
func-php7.3-v9:
|
||||
image: php:7.3
|
||||
services:
|
||||
- mariadb:10
|
||||
stage: test
|
||||
dependencies: []
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.3
|
||||
script:
|
||||
- composer require typo3/minimal:"^9.5"
|
||||
- composer ci:tests:functional
|
||||
|
||||
func-php7.4-v9:
|
||||
image: php:7.4
|
||||
services:
|
||||
- mariadb:10
|
||||
stage: test
|
||||
dependencies: []
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.4
|
||||
script:
|
||||
- composer require typo3/minimal:"^9.5"
|
||||
- composer ci:tests:functional
|
||||
|
||||
phpcs:
|
||||
stage: codestyle
|
||||
needs:
|
||||
|
|
Loading…
Reference in a new issue