Skip to content

Commit

Permalink
[TASK] Make 10.0.x compatible with TYPO3 9.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed May 3, 2019
1 parent 70f4470 commit 75c75a5
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 41 deletions.
44 changes: 28 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
language: php
php:
- 7.2

env:
- UNIT_TESTS=yes
- PHP_LINT=yes
- PHP_CS_FIXER=yes
matrix:
fast_finish: true
include:
-
php: 7.2
env: TYPO3_CORE=^9 TESTING_FRAMEWORK=^4 PHP_LINT=1 PHP_CS_FIXER=1
-
php: 7.3
env: TYPO3_CORE=^9 TESTING_FRAMEWORK=^4 PHP_LINT=1 PHP_CS_FIXER=0
-
php: 7.2
env: TYPO3_CORE=10.0.*@dev TESTING_FRAMEWORK=^5 PHP_LINT=0 PHP_CS_FIXER=0
-
php: 7.3
env: TYPO3_CORE=10.0.*@dev TESTING_FRAMEWORK=^5 PHP_LINT=0 PHP_CS_FIXER=0

sudo: false

Expand All @@ -18,28 +27,31 @@ cache:
directories:
- $HOME/.composer/cache

before_install:
- composer self-update
- composer --version

before_script:
- mkdir -p logs
- rm -rf .build/
- composer install --no-interaction --no-progress
- composer require "typo3/cms-core:${TYPO3_CORE}"
- composer require "typo3/testing-framework:${TESTING_FRAMEWORK}"
- git checkout composer.json

script:
- >
if [[ "$PHP_LINT" == "yes" ]]; then
if [[ "$PHP_LINT" == "1" ]]; then
echo;
echo "PHP lint";
find . -name \*.php ! -path "./.build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
fi
- >
if [[ "$PHP_CS_FIXER" == "yes" ]]; then
if [[ "$PHP_CS_FIXER" == "1" ]]; then
echo;
echo "PHP CS Fixer";
./.build/bin/php-cs-fixer fix --format=junit > logs/php-cs-fixer.xml
./.build/bin/php-cs-fixer fix --dry-run --verbose --diff
fi
- >
if [[ "$UNIT_TESTS" == "yes" ]]; then
echo;
echo "Unit tests";
.build/vendor/phpunit/phpunit/phpunit -c Build/UnitTests.xml --log-junit logs/phpunit.xml --coverage-clover logs/coverage.xml --coverage-html logs/coverage/
fi
echo;
echo "Unit tests";
.build/vendor/phpunit/phpunit/phpunit -c Build/UnitTests.xml
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ This blog extension uses TYPO3s core concepts and elements to provide a full-blo

## Requirements

| Version | TYPO3 | PHP |
|----------|-------------|----------|
| master | 10.0.*@dev | ^7.2 |
| v9.1.x | ^9.5.1 | ^7.2 |
| v9.0.x | ^9.5.1 | ^7.2 |
| v8.7.x | ^8.7.0 | >=7.0.0 |
| v7.6.x | ^7.6.0 | >=5.5.0 |
| Version | TYPO3 | PHP |
|----------|-----------------------|----------|
| master | ^9.5.5 or 10.0.*@dev | ^7.2 |
| v9.1.x | ^9.5.1 | ^7.2 |
| v9.0.x | ^9.5.1 | ^7.2 |
| v8.7.x | ^8.7.0 | >=7.0.0 |
| v7.6.x | ^7.6.0 | >=5.5.0 |

## License
GPL-2.0-or-later
Expand Down
33 changes: 16 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,24 @@
"php": "^7.2",
"ext-json": "*",
"ext-pdo": "*",
"psr/http-message": "^1.0.0",
"symfony/console": "^4.1",
"typo3/cms-backend": "10.0.*@dev",
"typo3/cms-core": "10.0.*@dev",
"typo3/cms-extbase": "10.0.*@dev",
"typo3/cms-extensionmanager": "10.0.*@dev",
"typo3/cms-fluid": "10.0.*@dev",
"typo3/cms-frontend": "10.0.*@dev",
"typo3/cms-install": "10.0.*@dev",
"typo3fluid/fluid": "^2.6.0"
"psr/http-message": "^1.0",
"typo3/cms-backend": "^9.5.5 || 10.0.*@dev",
"typo3/cms-core": "^9.5.5 || 10.0.*@dev",
"typo3/cms-extbase": "^9.5.5 || 10.0.*@dev",
"typo3/cms-extensionmanager": "^9.5.5 || 10.0.*@dev",
"typo3/cms-fluid": "^9.5.5 || 10.0.*@dev",
"typo3/cms-frontend": "^9.5.5 || 10.0.*@dev",
"typo3/cms-install": "^9.5.5 || 10.0.*@dev",
"typo3fluid/fluid": "^2.6"
},
"require-dev": {
"typo3/cms-filelist": "10.0.*@dev",
"typo3/cms-lowlevel": "10.0.*@dev",
"typo3/cms-tstemplate": "10.0.*@dev",
"friendsofphp/php-cs-fixer": "^2.14.0",
"typo3/cms-filelist": "^9.5.5 || 10.0.*@dev",
"typo3/cms-lowlevel": "^9.5.5 || 10.0.*@dev",
"typo3/cms-tstemplate": "^9.5.5 || 10.0.*@dev",
"friendsofphp/php-cs-fixer": "^2.14",
"roave/security-advisories": "dev-master",
"t3g/blog-template-test": "^1.0.0",
"typo3/testing-framework": "^5.0.0",
"bk2k/extension-helper": "^1.0.2"
"t3g/blog-template-test": "^1.0",
"typo3/testing-framework": "^4.9 || ^5.0",
"bk2k/extension-helper": "^1.0"
}
}
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'version' => '10.0.0-dev',
'constraints' => [
'depends' => [
'typo3' => '10.0.0-10.99.99',
'typo3' => '9.5.5-10.0.99',
],
'conflicts' => [],
'suggests' => [],
Expand Down
25 changes: 25 additions & 0 deletions ext_typoscript_setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,39 @@ plugin.tx_blog {

config.tx_extbase.persistence {
classes {
T3G\AgencyPack\Blog\Domain\Model\Content {
mapping {
tableName = tt_content
}
}
T3G\AgencyPack\Blog\Domain\Model\Post {
mapping {
tableName = pages
}
}
T3G\AgencyPack\Blog\Domain\Model\Category {
mapping {
tableName = sys_category
}
}
T3G\AgencyPack\Blog\Domain\Model\Comment {
newRecordStoragePid = {$plugin.tx_blog.settings.storagePid}
mapping {
tableName = tx_blog_domain_model_comment
columns.parentid.mapOnProperty = post
}
}
T3G\AgencyPack\Blog\Domain\Model\Tag {
newRecordStoragePid = {$plugin.tx_blog.settings.storagePid}
mapping {
tableName = tx_blog_domain_model_tag
}
}
T3G\AgencyPack\Blog\Domain\Model\Author {
newRecordStoragePid = {$plugin.tx_blog.settings.storagePid}
mapping {
tableName = tx_blog_domain_model_author
}
}
}
}

0 comments on commit 75c75a5

Please sign in to comment.