Skip to content

Commit

Permalink
[TASK] Extract sclable/xml-lint to global
Browse files Browse the repository at this point in the history
Makes it possible to run CI on PHP 8.4+
  • Loading branch information
dkd-kaehm committed Dec 17, 2024
1 parent a0571ad commit 09b5f10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
composer info
composer tests:setup
composer tests:setup && composer tests:setup:global-require
echo "Current Size of EXT:tika build Artefacts: " \
&& sudo du -sh "${{ env.CI_BUILD_DIRECTORY }}"
-
Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-phpunit": "^1.4",
"phpunit/phpunit": "^11.4",
"sclable/xml-lint": "^0.8.0",
"typo3/cms-lowlevel": "*",
"typo3/coding-standards": "v0.8.0",
"typo3/testing-framework": "^9.0.1"
Expand Down Expand Up @@ -123,6 +122,10 @@
"if [ -z ${TIKA_PATH+x} ]; then echo \"Can not proceed, because env var TIKA_PATH is not set\"; exit 1; fi",
"if echo $TYPO3_VERSION | grep -q \"dev\"; then $COMPOSER_BINARY config minimum-stability dev; fi"
],
"tests:setup:global-require": [
"echo \"Install global composer dependencies.\"",
"@composer global require sclable/xml-lint --ignore-platform-reqs"
],
"tests:setup": [
"# @todo: Abort if composer.json has not staged/commited changes on composer.json, to avoid losing necessery changes.",
"@tests:env",
Expand All @@ -147,7 +150,7 @@
],
"tests:lint-xml": [
"echo \"Run XML Lint\"",
"if ! xmllint Resources/Private/Language/ --pattern='*.xlf' --exclude=.Build/*; then echo \"Some XML files are not valid\" && echo \"Please fix the files listed above\" && export EXIT_CODE=4; else echo \"No syntax errors! Great job!\"; fi"
"if ! $($COMPOSER_BINARY config home)/vendor/bin/xmllint Resources/Private/Language/ --pattern='*.xlf' --exclude=.Build/*; then echo \"Some XML files are not valid\" && echo \"Please fix the files listed above\" && export EXIT_CODE=4; else echo \"No syntax errors! Great job!\"; fi"
]
},
"extra": {
Expand Down

0 comments on commit 09b5f10

Please sign in to comment.