mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-22 02:16:10 +01:00
Daniel Siepmann
de82e395e6
The current setup actually fixed and didn't check or fail. That's changed and code is fixed.
137 lines
3.7 KiB
YAML
137 lines
3.7 KiB
YAML
stages:
|
|
- validate
|
|
- test
|
|
|
|
before_script:
|
|
- apk add zip
|
|
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
|
- php composer-setup.php --filename composer --install-dir /bin
|
|
- php -r "unlink('composer-setup.php');"
|
|
|
|
validate:composer:
|
|
image: php:8.0-alpine
|
|
stage: validate
|
|
script:
|
|
- composer validate --no-check-publish --strict
|
|
|
|
validate:php:8.0:
|
|
image: php:8.0-alpine
|
|
stage: validate
|
|
script:
|
|
- find *.php Classes Configuration -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
|
|
|
|
validate:php:7.4:
|
|
image: php:7.4-alpine
|
|
stage: validate
|
|
script:
|
|
- find *.php Classes Configuration -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
|
|
|
|
validate:php:7.3:
|
|
image: php:7.3-alpine
|
|
stage: validate
|
|
script:
|
|
- find *.php Classes Configuration -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
|
|
|
|
validate:php:7.2:
|
|
image: php:7.2-alpine
|
|
stage: validate
|
|
script:
|
|
- find *.php Classes Configuration -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
|
|
|
|
validate:xml:
|
|
image: php:7.3-alpine
|
|
stage: validate
|
|
before_script:
|
|
script:
|
|
- apk add libxml2-utils wget
|
|
- composer install --prefer-dist --no-progress
|
|
- wget https://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd --output-document=.Build/xliff-core-1.2-strict.xsd
|
|
- xmllint --schema .Build/xliff-core-1.2-strict.xsd --noout $(find Resources -name '*.xlf')
|
|
|
|
validate:cgl:
|
|
image: php:7.3-alpine
|
|
stage: validate
|
|
before_script:
|
|
script:
|
|
- composer install --prefer-dist --no-progress
|
|
- ./vendor/bin/ecs check --no-progress-bar --clear-cache
|
|
|
|
validate:phpstan:8.0:
|
|
image: php:8.0-alpine
|
|
stage: validate
|
|
before_script:
|
|
script:
|
|
- composer install --prefer-dist --no-progress
|
|
- php -d memory_limit=-1 ./vendor/bin/phpstan --no-progress
|
|
|
|
validate:phpstan:7.4:11.5:
|
|
image: php:7.4-alpine
|
|
stage: validate
|
|
before_script:
|
|
script:
|
|
- composer require --no-ansi --no-interaction --no-progress typo3/cms-core:"^11.5"
|
|
- php -d memory_limit=-1 ./vendor/bin/phpstan --no-progress
|
|
|
|
validate:phpstan:7.4:10.4:
|
|
image: php:7.4-alpine
|
|
stage: validate
|
|
before_script:
|
|
script:
|
|
- composer require --no-ansi --no-interaction --no-progress typo3/cms-core:"^10.4"
|
|
- php -d memory_limit=-1 ./vendor/bin/phpstan --no-progress
|
|
|
|
validate:phpstan:7.3:
|
|
image: php:7.3-alpine
|
|
stage: validate
|
|
before_script:
|
|
script:
|
|
- composer install --prefer-dist --no-progress
|
|
- php -d memory_limit=-1 ./vendor/bin/phpstan --no-progress
|
|
|
|
validate:phpstan:7.2:
|
|
image: php:7.2-alpine
|
|
stage: validate
|
|
before_script:
|
|
script:
|
|
- composer install --prefer-dist --no-progress
|
|
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox
|
|
|
|
test:phpunit:8.0:
|
|
image: php:8.0-alpine
|
|
stage: test
|
|
before_script:
|
|
script:
|
|
- composer install --prefer-dist --no-progress
|
|
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox
|
|
|
|
test:phpunit:7.4:11.5:
|
|
image: php:7.4-alpine
|
|
stage: test
|
|
before_script:
|
|
script:
|
|
- composer require --no-ansi --no-interaction --no-progress typo3/cms-core:"^11.5"
|
|
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox
|
|
|
|
test:phpunit:7.4:10.4:
|
|
image: php:7.4-alpine
|
|
stage: test
|
|
before_script:
|
|
script:
|
|
- composer require --no-ansi --no-interaction --no-progress typo3/cms-core:"^10.4"
|
|
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox
|
|
|
|
test:phpunit:7.3:
|
|
image: php:7.3-alpine
|
|
stage: test
|
|
before_script:
|
|
script:
|
|
- composer install --prefer-dist --no-progress
|
|
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox
|
|
|
|
test:phpunit:7.2:
|
|
image: php:7.2-alpine
|
|
stage: test
|
|
before_script:
|
|
script:
|
|
- composer install --prefer-dist --no-progress
|
|
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox
|