mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-24 03:36:12 +01:00
Compare commits
15 commits
e46e0d8f19
...
012a9b1411
Author | SHA1 | Date | |
---|---|---|---|
|
012a9b1411 | ||
|
f31fb452fc | ||
|
210c562041 | ||
|
1a4fc18b6c | ||
|
13be4d6c37 | ||
|
9ad48b528f | ||
|
a3d72de1de | ||
|
d8323ffb2d | ||
|
ef1e39b20d | ||
|
b0a4a7c611 | ||
|
76eb2b22d5 | ||
|
adb2b6693e | ||
|
6e987aca7b | ||
|
8cbf6abd27 | ||
|
3c5c350937 |
6 changed files with 243 additions and 32 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -83,6 +83,7 @@ jobs:
|
|||
- "json:lint"
|
||||
- "php:cs-fixer"
|
||||
- "php:mess"
|
||||
- "php:rector"
|
||||
- "php:sniff"
|
||||
- "php:stan"
|
||||
- "typoscript:lint"
|
||||
|
@ -326,6 +327,7 @@ jobs:
|
|||
documentation:
|
||||
name: Documentation
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 2
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
|
|
@ -8,8 +8,8 @@ stages:
|
|||
|
||||
include:
|
||||
- '/.gitlab/pipeline/jobs/.composer-update.yml'
|
||||
- '/.gitlab/pipeline/jobs/.default.yml'
|
||||
- '/.gitlab/pipeline/jobs/.default-frontend.yml'
|
||||
- '/.gitlab/pipeline/jobs/.default.yml'
|
||||
- '/.gitlab/pipeline/jobs/.variables.yml'
|
||||
- '/.gitlab/pipeline/jobs/build-composer-dependencies.yml'
|
||||
- '/.gitlab/pipeline/jobs/composer-normalize.yml'
|
||||
|
@ -20,21 +20,22 @@ include:
|
|||
- '/.gitlab/pipeline/jobs/func-php8.0-v11-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php8.1-v11-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php8.1-v11-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php8.2-v11-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php8.2-v11-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php8.1-v12-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php8.1-v12-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php8.2-v11-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php8.2-v11-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php8.2-v12-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/func-php8.2-v12-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/javascript-lint.yml'
|
||||
- '/.gitlab/pipeline/jobs/json-lint.yml'
|
||||
- '/.gitlab/pipeline/jobs/php-cs-fixer.yml'
|
||||
- '/.gitlab/pipeline/jobs/php-lint-php7.4.yml'
|
||||
- '/.gitlab/pipeline/jobs/php-lint-php8.0.yml'
|
||||
- '/.gitlab/pipeline/jobs/php-lint-php8.1.yml'
|
||||
- '/.gitlab/pipeline/jobs/php-lint-php8.2.yml'
|
||||
- '/.gitlab/pipeline/jobs/php-lint-php8.3.yml'
|
||||
- '/.gitlab/pipeline/jobs/phpcs.yml'
|
||||
- '/.gitlab/pipeline/jobs/php-cs-fixer.yml'
|
||||
- '/.gitlab/pipeline/jobs/rector.yml'
|
||||
- '/.gitlab/pipeline/jobs/typoscript-lint.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php7.4-v11-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php7.4-v11-lowest.yml'
|
||||
|
@ -42,14 +43,14 @@ include:
|
|||
- '/.gitlab/pipeline/jobs/unit-php8.0-v11-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.1-v11-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.1-v11-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.2-v11-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.2-v11-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.3-v11-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.3-v11-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.1-v12-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.1-v12-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.2-v11-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.2-v11-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.2-v12-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.2-v12-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.3-v11-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.3-v11-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.3-v12-highest.yml'
|
||||
- '/.gitlab/pipeline/jobs/unit-php8.3-v12-lowest.yml'
|
||||
- '/.gitlab/pipeline/jobs/xliff-lint.yml'
|
||||
|
|
187
.gitlab/pipeline/ci/php.ini
Normal file
187
.gitlab/pipeline/ci/php.ini
Normal file
|
@ -0,0 +1,187 @@
|
|||
[PHP]
|
||||
engine = On
|
||||
short_open_tag = Off
|
||||
precision = 14
|
||||
output_buffering = 4096
|
||||
zlib.output_compression = Off
|
||||
implicit_flush = Off
|
||||
unserialize_callback_func =
|
||||
serialize_precision = -1
|
||||
disable_functions =
|
||||
disable_classes =
|
||||
zend.enable_gc = On
|
||||
expose_php = Off
|
||||
; Resource Limits ;
|
||||
max_execution_time = 600
|
||||
request_terminate_timeout = 0
|
||||
max_input_time = -1
|
||||
;max_input_nesting_level = 64
|
||||
max_input_vars = 5000
|
||||
memory_limit = -1
|
||||
; Error handling and logging ;
|
||||
error_reporting = E_ALL
|
||||
display_errors = On
|
||||
display_startup_errors = On
|
||||
log_errors = On
|
||||
log_errors_max_len = 1024
|
||||
ignore_repeated_errors = Off
|
||||
ignore_repeated_source = Off
|
||||
report_memleaks = On
|
||||
;xmlrpc_errors = 0
|
||||
;xmlrpc_error_number = 0
|
||||
html_errors = On
|
||||
; Data Handling ;
|
||||
variables_order = "EGPCS"
|
||||
request_order = "GP"
|
||||
register_argc_argv = Off
|
||||
auto_globals_jit = On
|
||||
post_max_size = 100M
|
||||
auto_prepend_file =
|
||||
auto_append_file =
|
||||
default_mimetype = "text/html"
|
||||
default_charset = "UTF-8"
|
||||
; Paths and Directories ;
|
||||
doc_root =
|
||||
user_dir =
|
||||
enable_dl = Off
|
||||
cgi.fix_pathinfo=0
|
||||
; File Uploads ;
|
||||
file_uploads = On
|
||||
upload_max_filesize = 100M
|
||||
max_file_uploads = 20
|
||||
; Fopen wrappers ;
|
||||
allow_url_fopen = On
|
||||
allow_url_include = Off
|
||||
default_socket_timeout = 60
|
||||
;auto_detect_line_endings = Off
|
||||
; Dynamic Extensions ;
|
||||
|
||||
[CLI Server]
|
||||
cli_server.color = On
|
||||
|
||||
[Date]
|
||||
date.timezone = UTC
|
||||
|
||||
[Pdo_mysql]
|
||||
pdo_mysql.cache_size = 2000
|
||||
pdo_mysql.default_socket=
|
||||
|
||||
[SQL]
|
||||
sql.safe_mode = Off
|
||||
|
||||
[ODBC]
|
||||
odbc.allow_persistent = On
|
||||
odbc.check_persistent = On
|
||||
odbc.max_persistent = -1
|
||||
odbc.max_links = -1
|
||||
odbc.defaultlrl = 4096
|
||||
odbc.defaultbinmode = 1
|
||||
|
||||
[Interbase]
|
||||
ibase.allow_persistent = 1
|
||||
ibase.max_persistent = -1
|
||||
ibase.max_links = -1
|
||||
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
|
||||
ibase.dateformat = "%Y-%m-%d"
|
||||
ibase.timeformat = "%H:%M:%S"
|
||||
|
||||
[MySQLi]
|
||||
mysqli.max_persistent = -1
|
||||
mysqli.allow_persistent = On
|
||||
mysqli.max_links = -1
|
||||
mysqli.cache_size = 2000
|
||||
mysqli.default_port = 3306
|
||||
mysqli.default_socket =
|
||||
mysqli.default_host =
|
||||
mysqli.default_user =
|
||||
mysqli.default_pw =
|
||||
mysqli.reconnect = Off
|
||||
|
||||
[mysqlnd]
|
||||
mysqlnd.collect_statistics = On
|
||||
mysqlnd.collect_memory_statistics = Off
|
||||
|
||||
[PostgreSQL]
|
||||
pgsql.allow_persistent = On
|
||||
pgsql.auto_reset_persistent = Off
|
||||
pgsql.max_persistent = -1
|
||||
pgsql.max_links = -1
|
||||
pgsql.ignore_notice = 0
|
||||
pgsql.log_notice = 0
|
||||
|
||||
[bcmath]
|
||||
bcmath.scale = 0
|
||||
|
||||
[Session]
|
||||
session.save_handler = files
|
||||
session.use_strict_mode = 0
|
||||
session.use_cookies = 1
|
||||
session.use_only_cookies = 1
|
||||
session.name = PHPSESSID
|
||||
session.auto_start = 0
|
||||
session.cookie_lifetime = 0
|
||||
session.cookie_path = /
|
||||
session.cookie_domain =
|
||||
session.cookie_httponly =
|
||||
session.serialize_handler = php
|
||||
session.gc_probability = 0
|
||||
session.gc_divisor = 1000
|
||||
session.gc_maxlifetime = 1440
|
||||
session.referer_check =
|
||||
session.cache_limiter = nocache
|
||||
session.cache_expire = 180
|
||||
session.use_trans_sid = 0
|
||||
session.hash_function = 0
|
||||
session.hash_bits_per_character = 5
|
||||
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
|
||||
|
||||
[Assertion]
|
||||
zend.assertions = -1
|
||||
|
||||
[Tidy]
|
||||
tidy.clean_output = Off
|
||||
|
||||
[soap]
|
||||
soap.wsdl_cache_enabled=1
|
||||
soap.wsdl_cache_dir="/tmp"
|
||||
soap.wsdl_cache_ttl=86400
|
||||
soap.wsdl_cache_limit = 5
|
||||
|
||||
|
||||
[ldap]
|
||||
ldap.max_links = -1
|
||||
|
||||
[opcache]
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.memory_consumption=500
|
||||
opcache.interned_strings_buffer=16
|
||||
opcache.max_accelerated_files=1000000
|
||||
;opcache.max_wasted_percentage=5
|
||||
;opcache.use_cwd=1
|
||||
opcache.validate_timestamps=1
|
||||
opcache.revalidate_freq=0
|
||||
;opcache.revalidate_path=0
|
||||
;opcache.save_comments=1
|
||||
opcache.fast_shutdown=1
|
||||
;opcache.enable_file_override=0
|
||||
;opcache.optimization_level=0xffffffff
|
||||
;opcache.inherited_hack=1
|
||||
;opcache.dups_fix=0
|
||||
;opcache.blacklist_filename=
|
||||
;opcache.max_file_size=0
|
||||
;opcache.consistency_checks=0
|
||||
;opcache.force_restart_timeout=180
|
||||
;opcache.error_log=
|
||||
;opcache.log_verbosity_level=1
|
||||
;opcache.preferred_memory_model=
|
||||
;opcache.protect_memory=0
|
||||
;opcache.restrict_api=
|
||||
;opcache.mmap_base=
|
||||
;opcache.file_cache=
|
||||
;opcache.file_cache_only=0
|
||||
;opcache.file_cache_consistency_checks=1
|
||||
;opcache.file_cache_fallback=1
|
||||
;opcache.huge_code_pages=1
|
||||
;opcache.validate_permission=0
|
||||
;opcache.validate_root=0
|
|
@ -2,3 +2,7 @@
|
|||
image: ghcr.io/typo3/core-testing-php83:latest
|
||||
before_script:
|
||||
- bash .gitlab/build/docker_install.sh > /dev/null
|
||||
variables:
|
||||
PHP_INI_SCAN_DIR: "/etc/php"
|
||||
volumes:
|
||||
- ./ci/php.ini:/usr/local/etc/php/php.ini
|
||||
|
|
11
.gitlab/pipeline/jobs/rector.yml
Normal file
11
.gitlab/pipeline/jobs/rector.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
rector:
|
||||
extends: .default
|
||||
stage: codestyle
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.4
|
||||
- php-lint-php8.0
|
||||
- php-lint-php8.1
|
||||
- php-lint-php8.2
|
||||
script:
|
||||
- composer ci:php:rector
|
|
@ -47,31 +47,31 @@
|
|||
"typo3/cms-frontend": "^11.5.4 || ^12.4.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"ergebnis/composer-normalize": "^2.43.0",
|
||||
"friendsofphp/php-cs-fixer": "^3.64.0",
|
||||
"helmich/typo3-typoscript-lint": "^3.1.1",
|
||||
"icanhazstring/composer-unused": "^0.8.11",
|
||||
"php-parallel-lint/php-parallel-lint": "^1.4",
|
||||
"phpmd/phpmd": "^2.15.0",
|
||||
"phpstan/extension-installer": "^1.4.3",
|
||||
"phpstan/phpstan": "^1.12.3",
|
||||
"phpstan/phpstan-phpunit": "^1.4.0",
|
||||
"phpstan/phpstan-strict-rules": "^1.6.0",
|
||||
"phpunit/phpunit": "^9.6.20",
|
||||
"saschaegerer/phpstan-typo3": "^1.10.2",
|
||||
"seld/jsonlint": "^1.11.0",
|
||||
"spaze/phpstan-disallowed-calls": "^3.4",
|
||||
"squizlabs/php_codesniffer": "^3.10.3",
|
||||
"ssch/typo3-rector": "^2.6.5",
|
||||
"ssch/typo3-rector-testing-framework": "^2.0.1",
|
||||
"symfony/console": "^5.4 || ^6.4 || ^7.0",
|
||||
"symfony/translation": "^5.4 || ^6.4 || ^7.0",
|
||||
"symfony/yaml": "^5.4 || ^6.4 || ^7.0",
|
||||
"tomasvotruba/cognitive-complexity": "^0.2.3",
|
||||
"tomasvotruba/type-coverage": "^0.3.1",
|
||||
"ergebnis/composer-normalize": "2.44.0",
|
||||
"friendsofphp/php-cs-fixer": "3.64.0",
|
||||
"helmich/typo3-typoscript-lint": "3.1.1",
|
||||
"icanhazstring/composer-unused": "0.8.11",
|
||||
"php-parallel-lint/php-parallel-lint": "1.4.0",
|
||||
"phpmd/phpmd": "2.15.0",
|
||||
"phpstan/extension-installer": "1.4.3",
|
||||
"phpstan/phpstan": "1.12.5",
|
||||
"phpstan/phpstan-phpunit": "1.4.0",
|
||||
"phpstan/phpstan-strict-rules": "1.6.1",
|
||||
"phpunit/phpunit": "9.6.20",
|
||||
"saschaegerer/phpstan-typo3": "1.10.2",
|
||||
"seld/jsonlint": "1.11.0",
|
||||
"spaze/phpstan-disallowed-calls": "3.4.0",
|
||||
"squizlabs/php_codesniffer": "3.10.3",
|
||||
"ssch/typo3-rector": "2.8.0",
|
||||
"ssch/typo3-rector-testing-framework": "2.0.1",
|
||||
"symfony/console": "^5.4.44 || ^6.4.12 || ^7.1.5",
|
||||
"symfony/translation": "^5.4.44 || ^6.4.12 || ^7.1.5",
|
||||
"symfony/yaml": "^5.4.44 || ^6.4.12 || ^7.1.5",
|
||||
"tomasvotruba/cognitive-complexity": "0.2.3",
|
||||
"tomasvotruba/type-coverage": "1.0.0",
|
||||
"typo3/cms-fluid-styled-content": "^11.5.4 || ^12.4.2",
|
||||
"typo3/coding-standards": "^0.6.1 || ^0.8.0",
|
||||
"typo3/testing-framework": "^7.1.0",
|
||||
"typo3/coding-standards": "0.6.1 || 0.8.0",
|
||||
"typo3/testing-framework": "7.1.0",
|
||||
"webmozart/assert": "^1.11.0"
|
||||
},
|
||||
"replace": {
|
||||
|
@ -147,6 +147,7 @@
|
|||
"ci:php:cs-fixer": "php-cs-fixer fix --config .php-cs-fixer.php -v --dry-run --diff",
|
||||
"ci:php:lint": "parallel-lint .*.php *.php Classes Configuration Tests",
|
||||
"ci:php:mess": "phpmd Classes text Build/phpmd/phpmd.xml",
|
||||
"ci:php:rector": "rector --dry-run",
|
||||
"ci:php:sniff": "phpcs --standard=Build/phpcs/phpcs.xml Classes Configuration Tests",
|
||||
"ci:php:stan": "phpstan --no-progress -v",
|
||||
"ci:static": [
|
||||
|
@ -155,6 +156,7 @@
|
|||
"@ci:json:lint",
|
||||
"@ci:php:cs-fixer",
|
||||
"@ci:php:lint",
|
||||
"@ci:php:rector",
|
||||
"@ci:php:sniff",
|
||||
"@ci:php:stan",
|
||||
"@ci:typoscript:lint",
|
||||
|
@ -174,10 +176,12 @@
|
|||
"docs:generate": "docker run --rm --pull always -v $(pwd):/project -it ghcr.io/typo3-documentation/render-guides:latest --config=Documentation",
|
||||
"fix:composer:normalize": "@composer normalize --no-check-lock",
|
||||
"fix:php": [
|
||||
"@fix:php:rector",
|
||||
"@fix:php:cs",
|
||||
"@fix:php:sniff"
|
||||
],
|
||||
"fix:php:cs": "php-cs-fixer fix --config .php-cs-fixer.php",
|
||||
"fix:php:rector": "rector",
|
||||
"fix:php:sniff": "phpcbf --standard=Build/phpcs/phpcs.xml Classes Configuration Tests",
|
||||
"phpstan:baseline": "phpstan --generate-baseline --allow-empty-baseline",
|
||||
"prepare-release": [
|
||||
|
@ -218,6 +222,7 @@
|
|||
"ci:php:cs-fixer": "Checks the code style with the PHP Coding Standards Fixer (PHP-CS-Fixer).",
|
||||
"ci:php:lint": "Lints the PHP files for syntax errors.",
|
||||
"ci:php:mess": "Runs PHP mess detection.",
|
||||
"ci:php:rector": "Checks for code for changes by Rector.",
|
||||
"ci:php:sniff": "Checks the code style with PHP_CodeSniffer (PHPCS).",
|
||||
"ci:php:stan": "Checks the PHP types using PHPStan.",
|
||||
"ci:static": "Runs all static code checks (syntax, style, types).",
|
||||
|
@ -232,6 +237,7 @@
|
|||
"fix:composer:normalize": "Normalizes composer.json file content.",
|
||||
"fix:php": "Runs all fixers for the PHP code.",
|
||||
"fix:php:cs": "Fixes the code style with PHP-CS-Fixer.",
|
||||
"fix:php:rector": "Updates the code with Rector.",
|
||||
"fix:php:sniff": "Fixes the code style with PHP_CodeSniffer.",
|
||||
"phpstan:baseline": "Updates the PHPStan baseline file to match the code.",
|
||||
"prepare-release": "Removes development-only files in preparation of a TER release."
|
||||
|
|
Loading…
Reference in a new issue