Skip to content

Commit

Permalink
[FEATURE] TYPO3 version 12 (#25)
Browse files Browse the repository at this point in the history
* [TASK] Raise version constrain for TYPO3 to be v12

* [TASK] Require qbnk/qbank3api-phpwrapper v6.3

* [TASK] Add dependency v7.0 for qbnk/qbank3api-phpwrapper

* [BUGFIX] Change ext_ files using "defined('TYPO3') or die();"

* [WIP][TASK] Add compatibility with TYPO3 v12

* [TASK] Add version to be only 12.4 and up

* [TASK] Add version to 12.0.0-12.4.99

* [TASK] TYPO3 Rector upgrades

* [TASK] Adjust CI to be TYPO3 v12 and PHP 8.1

* [WIP] add button to TCA type 'file', possible Qbank element browser.

* [WIP] remove element browser and replave with javascript

* [WIP] js updates, labels, qbank service update T3v12

* [WIP] continue with BE module and templates

* [WIP] be module functions

* [WIP] remove unused config and script

* [WIP] updates for tests, ci style fixes

* [BUGFIX] fix path to lll file by ci fix

* [WIP] update ci configuration

* [TASK] bump version

---------

Co-authored-by: Mattias Nilsson <[email protected]>
  • Loading branch information
pixelmatseriks and MattiasNilsson authored Oct 13, 2023
1 parent a599bfa commit 0869a16
Show file tree
Hide file tree
Showing 60 changed files with 2,129 additions and 1,692 deletions.
99 changes: 5 additions & 94 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
---
name: CI
on:
push:
branches:
- master
pull_request:
schedule:
- cron: '15 3 * * 1'
on: [push, pull_request]
jobs:
php-lint:
name: "PHP linter"
Expand All @@ -26,9 +20,7 @@ jobs:
fail-fast: false
matrix:
php-version:
- 7.2
- 7.3
- 7.4
- 8.1
typoscript-lint:
name: "TypoScript linter"
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -86,27 +78,8 @@ jobs:
- "json:lint"
- "php:cs-fixer"
- "php:sniff"
# - "php:stan"
php-version:
- 7.4
# code-quality-frontend:
# name: "Code quality frontend checks"
# runs-on: ubuntu-20.04
# strategy:
# fail-fast: false
# matrix:
# command:
# - "style"
# - "js"
# steps:
# - name: "Checkout"
# uses: actions/checkout@v2
# - name: "Install modules"
# working-directory: ./Resources/Private
# run: yarn
# - name: "Run command"
# working-directory: ./Resources/Private
# run: "yarn lint:${{ matrix.command }}"
- 8.1
xliff-lint:
name: "Xliff linter"
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -161,68 +134,6 @@ jobs:
- highest
- lowest
php-version:
- 7.2
- 7.3
- 7.4
- 8.1
typo3-version:
- ^10.4
# functional-tests:
# name: "Functional tests"
# runs-on: ubuntu-18.04
# needs: php-lint
# steps:
# - name: "Checkout"
# uses: actions/checkout@v2
# - name: "Install PHP"
# uses: shivammathur/setup-php@v2
# with:
# php-version: "${{ matrix.php-version }}"
# tools: composer:v2
# extensions: mysqli
# coverage: none
# - name: "Show Composer version"
# run: composer --version
# - name: "Cache dependencies installed with composer"
# uses: actions/cache@v1
# with:
# key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
# path: ~/.cache/composer
# restore-keys: "php${{ matrix.php-version }}-composer-\n"
# - env:
# TYPO3: "${{ matrix.typo3-version }}"
# name: "Install TYPO3 Core"
# run: |
# composer require --no-progress typo3/minimal:"$TYPO3"
# composer show
# - if: "matrix.composer-dependencies == 'lowest'"
# name: "Install lowest dependencies with composer"
# run: |
# composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
# composer show
# - if: "matrix.composer-dependencies == 'highest'"
# name: "Install highest dependencies with composer"
# run: |
# composer update --no-ansi --no-interaction --no-progress --with-dependencies
# composer show
# - name: "Start MySQL"
# run: "sudo /etc/init.d/mysql start"
# - name: "Run functional tests"
# run: |
# export typo3DatabaseName="typo3";
# export typo3DatabaseHost="127.0.0.1";
# export typo3DatabaseUsername="root";
# export typo3DatabasePassword="root";
# composer ci:tests:functional
# strategy:
# fail-fast: false
# matrix:
# composer-dependencies:
# - highest
# - lowest
# php-version:
# - 7.2
# - 7.3
# - 7.4
# typo3-version:
# - ^9.5
# - ^10.4
- ^12.4
14 changes: 10 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
/*.idea
/.Build/*
/.fleet
/.php-cs-fixer.cache
/.phpunit.result.cache
/.php_cs.cache
/Documentation-GENERATED-temp/
/Resources/Private/node_modules/
/Resources/Private/package-lock.json
/Resources/Private/yarn-error.log
/Resources/Private/yarn.lock
/composer.lock
/nbproject
/var
/build
/clover.xml
/node_modules/
/package-lock.json
/yarn-error.log
/yarn.lock
Build/testing-docker/.env
5 changes: 5 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

$config = \TYPO3\CodingStandards\CsFixerConfig::create();
$config->getFinder()->in('Classes')->in('Configuration')->in('Tests');
return $config;
185 changes: 0 additions & 185 deletions .php_cs.php

This file was deleted.

13 changes: 13 additions & 0 deletions Build/FunctionalTests.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" backupGlobals="true" bootstrap="FunctionalTestsBootstrap.php" cacheResult="false" colors="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" beStrictAboutTestsThatDoNotTestAnything="false" failOnWarning="true" cacheDirectory=".phpunit.cache" requireCoverageMetadata="false">
<testsuites>
<testsuite name="Functional tests">
<directory>../Tests/Functional/</directory>
</testsuite>
</testsuites>
<php>
<const name="TYPO3_MODE" value="BE"/>
<ini name="display_errors" value="1"/>
<env name="TYPO3_CONTEXT" value="Testing"/>
</php>
</phpunit>
20 changes: 20 additions & 0 deletions Build/FunctionalTestsBootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/

call_user_func(function () {
$testbase = new \TYPO3\TestingFramework\Core\Testbase();
$testbase->defineOriginalRootPath();
$testbase->createDirectory(ORIGINAL_ROOT . 'typo3temp/var/tests');
$testbase->createDirectory(ORIGINAL_ROOT . 'typo3temp/var/transient');
});
Loading

0 comments on commit 0869a16

Please sign in to comment.