Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2020-12-11 16:16:43 +0300
committerAleksander Machniak <alec@alec.pl>2020-12-11 16:16:43 +0300
commit32b0113fc71cf0f762e1ef90968ea6324092aec2 (patch)
tree937bfc9ab223694b4c7dcb484781f9e338efda4a /.ci/install.sh
parent14183a2d09b68e6fb1631cf0826de4edb6f5db78 (diff)
Travis: Another way to get proper phpunit version for PHP8
Diffstat (limited to '.ci/install.sh')
-rwxr-xr-x.ci/install.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/.ci/install.sh b/.ci/install.sh
index a445a84c4..763fa2ff5 100755
--- a/.ci/install.sh
+++ b/.ci/install.sh
@@ -17,8 +17,9 @@ if [ "$BROWSER_TESTS" = 1 ]; then composer require "laravel/dusk:~6.9.0" --no-up
# Add suggested dependencies required for tests
composer require "kolab/net_ldap3:~1.1.1" --no-update
-# Force phpunit version on PHP 8.0 for some reason composer chooses v4.8 which isn't compatible
-if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer require "phpunit/phpunit:^7" --no-update; fi
+# phpunit v7 is working fine on PHP8, but composer installs an older version,
+# so we'll emulate PHP 7.4 platform to get phpunit v7
+if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer config platform.php 7.4; fi
# Install PHP dependencies
composer install --prefer-dist