diff options
-rwxr-xr-x | before_install.sh | 10 | ||||
-rw-r--r-- | composer-phpunit5.json | 5 | ||||
-rw-r--r-- | composer.json | 2 |
3 files changed, 14 insertions, 3 deletions
diff --git a/before_install.sh b/before_install.sh index 44257c5..0923be1 100755 --- a/before_install.sh +++ b/before_install.sh @@ -83,10 +83,16 @@ fi bash ./core_install.sh $DB # -# install phpunit 5.* for BC on php7 +# install fixed phpunit version # cd .. -wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/composer.json + +if [ "$CORE_BRANCH" == "stable13" -o "$CORE_BRANCH" == "stable12" -o "$CORE_BRANCH" == "stable11" -o "$CORE_BRANCH" == "stable10" -o "$CORE_BRANCH" == "stable9" ]; then + wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/composer-phpunit5.json + mv composer-phpunit5.json composer.json +else + wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/composer.json +fi composer install export PATH="$PWD/vendor/bin:$PATH" cd $WORKDIR diff --git a/composer-phpunit5.json b/composer-phpunit5.json new file mode 100644 index 0000000..2ea670d --- /dev/null +++ b/composer-phpunit5.json @@ -0,0 +1,5 @@ +{ + "require": { + "phpunit/phpunit": "^5.2" + } +} diff --git a/composer.json b/composer.json index 2ea670d..c08205e 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { "require": { - "phpunit/phpunit": "^5.2" + "phpunit/phpunit": "^6.5" } } |