Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/Tests/ export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitlab-ci.yml export-ignore
/.gitignore export-ignore
/codeception.dist.yml export-ignore
/crowdin.yml export-ignore
/rector.php export-ignore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
&& composer install --no-progress --no-ansi --no-interaction

- name: Build codeception tester
run: .build/bin/codecept build
run: .Build/bin/codecept build

- name: Code Quality (by PHPStan)
run: composer project:phpstan
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.build
.Build
composer.lock

.php-cs-fixer.cache
Expand All @@ -9,6 +9,5 @@ Build/.phpunit.cache
.idea

var/
vendor/

coverage_result/
154 changes: 0 additions & 154 deletions .gitlab-ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Build/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="true" bootstrap="../.build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTestsBootstrap.php" colors="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" cacheDirectory=".phpunit.cache" requireCoverageMetadata="false">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="true" bootstrap="../.Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTestsBootstrap.php" colors="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" cacheDirectory=".phpunit.cache" requireCoverageMetadata="false">
<coverage/>
<testsuites>
<testsuite name="functional">
Expand Down
6 changes: 3 additions & 3 deletions codeception.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace: 'Extcode\CartEvents\Tests\Acceptance\Support'
paths:
tests: 'Tests/Acceptance'
data: 'Tests/Acceptance/Data'
output: '.build/public/typo3temp/var/tests/acceptance-reports'
output: '.Build/public/typo3temp/var/tests/acceptance-reports'
support: 'Tests/Acceptance/Support'

settings:
Expand All @@ -13,8 +13,8 @@ extensions:
enabled:
-
'Codeception\Extension\RunProcess':
- 'geckodriver > .build/public/typo3temp/var/tests/acceptance-logs/geckodriver.log 2>&1'
- 'TYPO3_PATH_APP="$INSTANCE_PATH" TYPO3_PATH_ROOT="$INSTANCE_PATH" php -S 127.0.0.1:8080 -t "$INSTANCE_PATH" > .build/public/typo3temp/var/tests/acceptance-logs/php.log 2>&1'
- 'geckodriver > .Build/public/typo3temp/var/tests/acceptance-logs/geckodriver.log 2>&1'
- 'TYPO3_PATH_APP="$INSTANCE_PATH" TYPO3_PATH_ROOT="$INSTANCE_PATH" php -S 127.0.0.1:8080 -t "$INSTANCE_PATH" > .Build/public/typo3temp/var/tests/acceptance-logs/php.log 2>&1'
-
'Codeception\Extension\Recorder'
-
Expand Down
24 changes: 12 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
}
},
"config": {
"bin-dir": ".build/bin",
"vendor-dir": ".build/vendor",
"bin-dir": ".Build/bin",
"vendor-dir": ".Build/vendor",
"allow-plugins": {
"typo3/cms-composer-installers": true,
"typo3/class-alias-loader": true,
Expand All @@ -46,7 +46,7 @@
"extra": {
"typo3/cms": {
"extension-key": "cart_events",
"web-dir": ".build/public"
"web-dir": ".Build/public"
}
},
"require": {
Expand Down Expand Up @@ -78,35 +78,35 @@
},
"scripts": {
"project:reinstall": [
"rm -rf .build/ composer.lock",
"rm -rf .Build/ composer.lock",
"composer update --prefer-dist --no-progress --working-dir=\"$PROJECT_ROOT\""
],
"project:cgl": [
".build/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --using-cache=no --dry-run --diff"
".Build/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --using-cache=no --dry-run --diff"
],
"project:cgl-fix": [
".build/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --using-cache=no"
".Build/bin/php-cs-fixer fix --config=Build/.php-cs-fixer.dist.php -v --using-cache=no"
],
"project:lint:php": [
"find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l"
],
"project:phpstan": [
".build/bin/phpstan analyse -c Build/phpstan.neon --memory-limit 256M"
".Build/bin/phpstan analyse -c Build/phpstan.neon --memory-limit 256M"
],
"project:test:unit": [
".build/bin/phpunit -c Build/phpunit.xml.dist --testsuite unit --display-warnings --display-deprecations --display-errors"
".Build/bin/phpunit -c Build/phpunit.xml.dist --testsuite unit --display-warnings --display-deprecations --display-errors"
],
"project:test:functional": [
".build/bin/phpunit -c Build/phpunit.xml.dist --testsuite functional --display-warnings --display-deprecations --display-errors"
".Build/bin/phpunit -c Build/phpunit.xml.dist --testsuite functional --display-warnings --display-deprecations --display-errors"
],
"test:rector:process": [
"vendor/bin/rector process"
".Build/bin/rector process"
],
"test:rector:process:dry-run": [
"vendor/bin/rector process --dry-run"
".Build/bin/rector process --dry-run"
],
"test:typoscript:lint": [
"vendor/bin/typoscript-lint -c Build/typoscriptlint.yaml Configuration"
".Build/bin/typoscript-lint -c Build/typoscriptlint.yaml Configuration"
],
"test:php": [
"@test:php:lint",
Expand Down
16 changes: 8 additions & 8 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let
php
];
text = ''
rm -rf .build/ composer.lock,
rm -rf .Build/ composer.lock,
composer update --prefer-dist --no-progress
'';
};
Expand Down Expand Up @@ -119,7 +119,7 @@ let
];
text = ''
project-install
XDEBUG_MODE=coverage .build/bin/phpunit -c Build/phpunit.xml.dist --coverage-html=coverage_result
XDEBUG_MODE=coverage .Build/bin/phpunit -c Build/phpunit.xml.dist --coverage-html=coverage_result
'';
};

Expand All @@ -136,14 +136,14 @@ let
text = ''
project-install

mkdir -p "$PROJECT_ROOT/.build/public/typo3temp/var/tests/acceptance"
mkdir -p "$PROJECT_ROOT/.build/public/typo3temp/var/tests/acceptance-logs"
mkdir -p "$PROJECT_ROOT/.build/public/typo3temp/var/tests/acceptance-reports"
mkdir -p "$PROJECT_ROOT/.build/public/typo3temp/var/tests/acceptance-sqlite-dbs"
mkdir -p "$PROJECT_ROOT/.Build/public/typo3temp/var/tests/acceptance"
mkdir -p "$PROJECT_ROOT/.Build/public/typo3temp/var/tests/acceptance-logs"
mkdir -p "$PROJECT_ROOT/.Build/public/typo3temp/var/tests/acceptance-reports"
mkdir -p "$PROJECT_ROOT/.Build/public/typo3temp/var/tests/acceptance-sqlite-dbs"

export INSTANCE_PATH="$PROJECT_ROOT/.build/public/typo3temp/var/tests/acceptance"
export INSTANCE_PATH="$PROJECT_ROOT/.Build/public/typo3temp/var/tests/acceptance"

.build/bin/codecept run
.Build/bin/codecept run

pgrep -f "php -S" | xargs -r kill
pgrep -f "geckodriver" | xargs -r kill
Expand Down
Loading