Signed-off-by: Maxence Lange <maxence@artificial-owl.com>tags/v26.0.0beta2
# "--image XXX" option can be provided to set the Docker image to use to run | # "--image XXX" option can be provided to set the Docker image to use to run | ||||
# the integration tests (one of the "nextcloudci/phpX.Y:phpX.Y-Z" or | # the integration tests (one of the "nextcloudci/phpX.Y:phpX.Y-Z" or | ||||
# "ghcr.io/nextcloud/continuous-integration-integration-phpX.Y:latest" images). | # "ghcr.io/nextcloud/continuous-integration-integration-phpX.Y:latest" images). | ||||
NEXTCLOUD_LOCAL_IMAGE="ghcr.io/nextcloud/continuous-integration-integration-php7.4:latest" | |||||
NEXTCLOUD_LOCAL_IMAGE="ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest" | |||||
if [ "$1" = "--image" ]; then | if [ "$1" = "--image" ]; then | ||||
NEXTCLOUD_LOCAL_IMAGE=$2 | NEXTCLOUD_LOCAL_IMAGE=$2 | ||||
--network=container:$SELENIUM_CONTAINER \ | --network=container:$SELENIUM_CONTAINER \ | ||||
--volume composer_cache:/root/.composer \ | --volume composer_cache:/root/.composer \ | ||||
--interactive \ | --interactive \ | ||||
--tty ghcr.io/nextcloud/continuous-integration-acceptance-php7.4:latest bash | |||||
--tty ghcr.io/nextcloud/continuous-integration-acceptance-php8.0:latest bash | |||||
# Use the $TMPDIR or, if not set, fall back to /tmp. | # Use the $TMPDIR or, if not set, fall back to /tmp. | ||||
NEXTCLOUD_LOCAL_TAR="$($MKTEMP --tmpdir="${TMPDIR:-/tmp}" --suffix=.tar nextcloud-local-XXXXXXXXXX)" | NEXTCLOUD_LOCAL_TAR="$($MKTEMP --tmpdir="${TMPDIR:-/tmp}" --suffix=.tar nextcloud-local-XXXXXXXXXX)" |