1
1
#! /usr/bin/env bash
2
2
3
3
#
4
- # TYPO3 core test runner based on docker and docker-compose.
4
+ # TYPO3 JobRouter Connector test runner based on docker and docker-compose.
5
5
#
6
6
7
- # Function to write a .env file in Build/testing-docker/local
7
+ # Function to write a .env file in Build/testing-docker
8
8
# 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
10
10
setUpDockerComposeDotEnv () {
11
11
# Delete possibly existing local .env file if exists
12
12
[ -e .env ] && rm .env
@@ -51,7 +51,6 @@ Options:
51
51
- composerValidate: "composer validate"
52
52
- functional: functional tests
53
53
- lint: PHP linting
54
- - phpstan: phpstan analyze
55
54
- unit (default): PHP unit tests
56
55
57
56
-d <mariadb>
@@ -85,10 +84,6 @@ Options:
85
84
Send xdebug information to a different port than default 9000 if an IDE like PhpStorm
86
85
is not listening on default port.
87
86
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
-
92
87
-u
93
88
Update existing typo3gmbh/phpXY:latest docker images. Maintenance call to docker pull latest
94
89
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
132
127
PHP_XDEBUG_PORT=9000
133
128
EXTRA_TEST_OPTIONS=" "
134
129
SCRIPT_VERBOSE=0
135
- CGLCHECK_DRY_RUN=" "
136
130
137
131
# Option parsing
138
132
# Reset in case getopts has been used previously in the shell
@@ -161,9 +155,6 @@ while getopts ":s:p:e:xy:nhuv" OPT; do
161
155
echo " ${HELP} "
162
156
exit 0
163
157
;;
164
- n)
165
- CGLCHECK_DRY_RUN=" -n"
166
- ;;
167
158
u)
168
159
TEST_SUITE=update
169
160
;;
@@ -223,16 +214,6 @@ case ${TEST_SUITE} in
223
214
SUITE_EXIT_CODE=$?
224
215
docker-compose down
225
216
;;
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
- ;;
236
217
composerInstall)
237
218
setUpDockerComposeDotEnv
238
219
docker-compose run composer_install
@@ -257,12 +238,6 @@ case ${TEST_SUITE} in
257
238
SUITE_EXIT_CODE=$?
258
239
docker-compose down
259
240
;;
260
- phpstan)
261
- setUpDockerComposeDotEnv
262
- docker-compose run phpstan
263
- SUITE_EXIT_CODE=$?
264
- docker-compose down
265
- ;;
266
241
unit)
267
242
setUpDockerComposeDotEnv
268
243
docker-compose run unit
0 commit comments