File tree Expand file tree Collapse file tree
apps/files_external/tests/env Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424echo " Docker executable found - setup docker"
2525
26- echo " Fetch recent morrisjobke/ webdav docker image"
27- docker pull morrisjobke/ webdav
26+ echo " Fetch recent webdav docker image"
27+ docker pull ghcr.io/nextcloud/continuous-integration- webdav-apache:latest
2828
2929# retrieve current folder to place the config in the parent folder
3030thisFolder=` echo $0 | sed ' s#env/start-webdav-apache\.sh##' `
@@ -45,7 +45,7 @@ if [ -n "$RUN_DOCKER_MYSQL" ]; then
4545 parameter=" --link $containerName :db"
4646fi
4747
48- container=` docker run -P $parameter -d -e USERNAME=test -e PASSWORD=test morrisjobke/ webdav`
48+ container=` docker run -P $parameter -d --rm ghcr.io/nextcloud/continuous-integration- webdav-apache:latest `
4949host=` docker inspect --format=" {{.NetworkSettings.IPAddress}}" $container `
5050
5151echo -n " Waiting for Apache initialization on ${host} :${port} "
@@ -64,7 +64,7 @@ return array(
6464 'run'=>true,
6565 'host'=>'${host} :80/webdav/',
6666 'user'=>'test',
67- 'password'=>'test ',
67+ 'password'=>'pass ',
6868 'root'=>'',
6969 // wait delay in seconds after write operations
7070 // (only in tests)
Original file line number Diff line number Diff line change @@ -31,16 +31,21 @@ function print_syntax {
3131}
3232
3333if ! [ -x " $PHPUNIT " ]; then
34- echo " phpunit executable not found, please install phpunit version >= 4.8" >&2
35- exit 3
34+ echo " phpunit executable not found, trying local one from build/integration" >&2
35+ if [ -x " $PWD /build/integration/vendor/phpunit/phpunit/phpunit" ]; then
36+ PHPUNIT=" $PWD /build/integration/vendor/phpunit/phpunit/phpunit"
37+ else
38+ echo " phpunit executable not found, please install phpunit version >= 9.6" >&2
39+ exit 3
40+ fi
3641fi
3742
3843PHPUNIT_VERSION=$( " $PHPUNIT " --version | cut -d" " -f2)
3944PHPUNIT_MAJOR_VERSION=$( echo $PHPUNIT_VERSION | cut -d" ." -f1)
4045PHPUNIT_MINOR_VERSION=$( echo $PHPUNIT_VERSION | cut -d" ." -f2)
4146
42- if ! [ $PHPUNIT_MAJOR_VERSION -gt 9 -o \( $PHPUNIT_MAJOR_VERSION -eq 9 -a $PHPUNIT_MINOR_VERSION -ge 0 \) ]; then
43- echo " phpunit version >= 9.0 required. Version found: $PHPUNIT_VERSION " >&2
47+ if ! [ $PHPUNIT_MAJOR_VERSION -gt 9 -o \( $PHPUNIT_MAJOR_VERSION -eq 9 -a $PHPUNIT_MINOR_VERSION -ge 6 \) ]; then
48+ echo " phpunit version >= 9.6 required. Version found: $PHPUNIT_VERSION " >&2
4449 exit 4
4550fi
4651
You can’t perform that action at this time.
0 commit comments