Skip to content

Commit 115b912

Browse files
committed
[TASK] Remove unneeded options
1 parent 25e3caa commit 115b912

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

Build/Scripts/runTests.sh

+3-28
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env bash
22

33
#
4-
# TYPO3 core test runner based on docker and docker-compose.
4+
# TYPO3 JobRouter Connector test runner based on docker and docker-compose.
55
#
66

7-
# Function to write a .env file in Build/testing-docker/local
7+
# Function to write a .env file in Build/testing-docker
88
# This is read by docker-compose and vars defined here are
9-
# used in Build/testing-docker/local/docker-compose.yml
9+
# used in Build/testing-docker/docker-compose.yml
1010
setUpDockerComposeDotEnv() {
1111
# Delete possibly existing local .env file if exists
1212
[ -e .env ] && rm .env
@@ -51,7 +51,6 @@ Options:
5151
- composerValidate: "composer validate"
5252
- functional: functional tests
5353
- lint: PHP linting
54-
- phpstan: phpstan analyze
5554
- unit (default): PHP unit tests
5655
5756
-d <mariadb>
@@ -85,10 +84,6 @@ Options:
8584
Send xdebug information to a different port than default 9000 if an IDE like PhpStorm
8685
is not listening on default port.
8786
88-
-n
89-
Only with -s cgl
90-
Activate dry-run in CGL check that does not actively change files and only prints broken ones.
91-
9287
-u
9388
Update existing typo3gmbh/phpXY:latest docker images. Maintenance call to docker pull latest
9489
versions of the main php images. The images are updated once in a while and only the youngest
@@ -132,7 +127,6 @@ PHP_XDEBUG_ON=0
132127
PHP_XDEBUG_PORT=9000
133128
EXTRA_TEST_OPTIONS=""
134129
SCRIPT_VERBOSE=0
135-
CGLCHECK_DRY_RUN=""
136130

137131
# Option parsing
138132
# Reset in case getopts has been used previously in the shell
@@ -161,9 +155,6 @@ while getopts ":s:p:e:xy:nhuv" OPT; do
161155
echo "${HELP}"
162156
exit 0
163157
;;
164-
n)
165-
CGLCHECK_DRY_RUN="-n"
166-
;;
167158
u)
168159
TEST_SUITE=update
169160
;;
@@ -223,16 +214,6 @@ case ${TEST_SUITE} in
223214
SUITE_EXIT_CODE=$?
224215
docker-compose down
225216
;;
226-
cgl)
227-
# Active dry-run for cgl needs not "-n" but specific options
228-
if [[ ! -z ${CGLCHECK_DRY_RUN} ]]; then
229-
CGLCHECK_DRY_RUN="--dry-run --diff --diff-format udiff"
230-
fi
231-
setUpDockerComposeDotEnv
232-
docker-compose run cgl
233-
SUITE_EXIT_CODE=$?
234-
docker-compose down
235-
;;
236217
composerInstall)
237218
setUpDockerComposeDotEnv
238219
docker-compose run composer_install
@@ -257,12 +238,6 @@ case ${TEST_SUITE} in
257238
SUITE_EXIT_CODE=$?
258239
docker-compose down
259240
;;
260-
phpstan)
261-
setUpDockerComposeDotEnv
262-
docker-compose run phpstan
263-
SUITE_EXIT_CODE=$?
264-
docker-compose down
265-
;;
266241
unit)
267242
setUpDockerComposeDotEnv
268243
docker-compose run unit

0 commit comments

Comments
 (0)