mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 00:36:13 +01:00
[TASK] Unify the coverage-related directories (#1450)
As we'll need to have `build/logs/` for the merged coverage data anyway, there is no point to have the separate coverage files in `.Build/coverage/` instead of in `build/coverage/`. Now the setup is more consistent. Please note that this only affects the CI builds as we usually only collect coverage data there for the pull requests.
This commit is contained in:
parent
22598ef789
commit
a0fa00564c
2 changed files with 6 additions and 6 deletions
4
.github/workflows/codecoverage.yml
vendored
4
.github/workflows/codecoverage.yml
vendored
|
@ -63,7 +63,7 @@ jobs:
|
|||
- name: "Run unit tests with coverage"
|
||||
run: composer ci:coverage:unit
|
||||
- name: "Show generated coverage files"
|
||||
run: "ls -lahR .Build/coverage/"
|
||||
run: "ls -lahR build/coverage/"
|
||||
- name: "Run functional tests with coverage"
|
||||
run: |
|
||||
export typo3DatabaseName="$DB_DATABASE";
|
||||
|
@ -72,7 +72,7 @@ jobs:
|
|||
export typo3DatabasePassword="$DB_PASSWORD";
|
||||
composer ci:coverage:functional
|
||||
- name: "Show generated coverage files"
|
||||
run: "ls -lahR .Build/coverage/"
|
||||
run: "ls -lahR build/coverage/"
|
||||
- name: "Merge coverage results"
|
||||
run: composer ci:coverage:merge
|
||||
- name: "Show combined coverage files"
|
||||
|
|
|
@ -127,15 +127,15 @@
|
|||
"ci:coverage:functional": [
|
||||
"@ci:tests:create-directories",
|
||||
"@coverage:create-directories",
|
||||
"phpunit -c Build/phpunit/FunctionalTests.xml --whitelist Classes --coverage-php=.Build/coverage/functional.cov Tests/Functional"
|
||||
"phpunit -c Build/phpunit/FunctionalTests.xml --whitelist Classes --coverage-php=build/coverage/functional.cov Tests/Functional"
|
||||
],
|
||||
"ci:coverage:merge": [
|
||||
"@coverage:create-directories",
|
||||
"@php tools/phpcov merge --clover=build/logs/clover.xml .Build/coverage/"
|
||||
"@php tools/phpcov merge --clover=build/logs/clover.xml build/coverage/"
|
||||
],
|
||||
"ci:coverage:unit": [
|
||||
"@coverage:create-directories",
|
||||
"phpunit -c Build/phpunit/UnitTests.xml --whitelist Classes --coverage-php=.Build/coverage/unit.cov Tests/Unit"
|
||||
"phpunit -c Build/phpunit/UnitTests.xml --whitelist Classes --coverage-php=build/coverage/unit.cov Tests/Unit"
|
||||
],
|
||||
"ci:json:lint": "find . ! -path '*/.cache/*' ! -path '*/.Build/*' ! -path '*/node_modules/*' -name '*.json' | xargs -r php .Build/bin/jsonlint -q",
|
||||
"ci:php": [
|
||||
|
@ -170,7 +170,7 @@
|
|||
"ci:typoscript:lint": "typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
|
||||
"ci:xliff:lint": "php Build/xliff/xliff-lint lint:xliff Resources/Private/Language",
|
||||
"ci:yaml:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' \\( -name '*.yaml' -o -name '*.yml' \\) | xargs -r php ./.Build/bin/yaml-lint",
|
||||
"coverage:create-directories": "mkdir -p .Build/coverage build/logs",
|
||||
"coverage:create-directories": "mkdir -p build/coverage build/logs",
|
||||
"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": [
|
||||
|
|
Loading…
Reference in a new issue