mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-15 18:56:13 +01:00
Commit graph

19 commits

Author SHA1 Message Date
Stefan Bürk
71bc7e137d [TASK] Introduce Build/Scripts/runTests.sh adoption
This change adopts the well known runTests.sh from TYPO3 core
and related extensions as basic scripts and test execution
center. Main benefit of this implemenation is, that these
commands are behaving the same on all systems and ci, thus
increasing interoperability and easier transforming of commands
between systems - which ease the way to rerun or debug failed
tests locally after detected in ci (GitHub Actions, Gitlab CI).

Available suits and options are aligned to this project needs,
and will be updated if needed. To display available commands:

```shell
Build/Scripts/runTests.sh -h
```

Generic tasks and options (incomplete):

* `-s composerInstall` normal install, for code quality checks

* `-s composerInstallLowest` and `-s composerInstallHighest` to
  install dependencies with lowest and highest possibilities for
  all dependencies, based on selected php-version, core-version
  and so on. This helps to build fast a wide range of testing
  matrix for unit- and functional tests

* `-p <7.4|8.0|8.1|8.2>` defines which php version is used for
  executed php and composer scripts, like unit or functional
  tests, composer installs and so on

* ensure support for following databases for functional tests:

  - postgres <10|11|12|13|14> default: 10
  - mysql <5.5|5.6|5.7|8.0> default: 5.5
  - mariadb <10.2|10.3|10.4|10.5|10.6|10.7> default: 10.2
  - sqlite

  This can be controlled with a couple of options:
    -d <sqlite|mariadb|mysql|postgres>
    -a <mysqli|pdo_mysql> (for -d mysql or -d mariadb)
    -i <10.2|10.3|10.4|10.5|10.6|10.7> (for -d mariadb)
    -j <5.5|5.6|5.7|8.0> (for -d mysql)
    -k <10|11|12|13|14> (for -d postgres)

* selection of core can be choosen with the `-t` flag,
  also only v11 currently available. This is already
  a preparation for multi-core testing or for further
  version shiftings.

* included cgl (php cs fixer) with dryrun as suite
* add phpstan and phpstan generate baseline suites

Resolves #94
2022-10-16 03:49:32 +02:00
Stefan Bürk
1e8b85e858 [TASK] Avoid race condition on case-insensitive filesystems
Case-insensitive filesystems cannot distinguish properly for
file and folder names with different caseings. This leads to
unforseable issues on these systems, like default partition
on MacOS devices from apple or eventually Windows systems.

This change configure phpcoverall and the chain explicitly to
use folders for the files which differs from the default of
`build/*` to avoid conflicts on case-insensitve filesystems
and prepare for introduction of the upcoming implementation
of TYPO3 core recommended `Build/` structure.
2022-10-16 01:55:38 +02:00
Stefan Bürk
8bb1b55ca7 [TASK] Add .gitignore for JetBrains Fleet editor
JetBrains created a new product named `Fleet` as
lightweight editor. This tool tends to write it's
config files to `.fleet/` folders, like all of the
IntellJ based IDE's like PHPStorm uses the `.idea`
folder.

This change adds this config folder to .gitignore
to avoid adding this folder to a patch if `Fleet`
is used to create a patch.
2022-10-16 00:19:36 +02:00
jpmschuler
518bae014e
[TASK] Move npm tools and config to default places (#445)
- Move npm tools and config to default places
- Remove now unnecessary config file parameter from npm scripts
- editorconfig and eslint config contradict, adapt editorconfig
- switch JS indent linting to TYPO3 coding standard of 2 spaces
- adapt composer scripts for new npm location
2022-05-18 17:17:45 +02:00
Oliver Klee
2e31910c61
[FEATURE] Use Coveralls for the code coverage (#425)
Fixes #345
Closes #400
2022-04-15 18:47:18 +02:00
Oliver Klee
fcd0f60d1b
[CLEANUP] Sort the entries in the .gitignore (#428) 2022-04-13 16:13:48 +02:00
Tobias Gaertner
cc62f32a36
[BUGFIX] Fix some .gitignore entries (#375)
- `.php_cs.cache` file was renamed to `.php-cs-fixer.cache`
- `.phpunit.result.cache` missing in `.gitignore`
2022-02-04 15:09:17 +01:00
Łukasz Uznański
9bf78a580b
[FEATURE] Calculate code coverage (#266) 2021-10-06 16:23:35 +02:00
Łukasz Uznański
dee89c5266
[TASK] Prepare documentation rendering (#157)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
2020-11-29 18:28:34 +01:00
Oliver Klee
c239eaf1c4
[CLEANUP] Sort the lines in the .gitignore and .gitattributes (#178) 2020-11-29 17:34:28 +01:00
Łukasz Uznański
d4ec80de29
[FEATURE] Add frontend linting (#120)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
Co-authored-by: Oliver Klee <typo3-coding@oliverklee.de>
2020-10-31 15:04:44 +01:00
Oliver Klee
3401e32a84
[FEATURE] Add PHP-CS-Fixer (#53)
Also run the fixer on all classes and tests.
2019-08-12 17:25:59 +02:00
Oliver Klee
1c82c6d3a2
[FEATURE] Add support for TYPO3 9.6 (#48) 2019-08-12 15:41:55 +02:00
Oliver Klee
1c36c57a52
[BUGFIX] Add .php_cs.cache to the .gitignore (#33)
[ci skip]
2018-10-13 23:05:01 +02:00
Oliver Klee
fa5740c3cc [TASK] Configure Composer caching and Xdebug 2018-01-10 22:23:45 +01:00
Oliver Klee
15dc45eca7 [FEATURE] Allow stand-alone tests 2017-05-05 18:00:40 +02:00
Oliver Klee
35e377ca6e [TASK] Add documentation directories to the .gitignore. 2013-11-01 19:55:30 +01:00
Oliver Klee
19c86335a5 [CLEANUP] Update .gitignore. 2013-11-01 19:51:34 +01:00
Oliver Klee
2ab4fe7610 Initial commit 2013-11-01 11:45:05 -07:00