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

github.com/nextcloud/travis_ci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-21 19:43:46 +0300
committerGitHub <noreply@github.com>2018-02-21 19:43:46 +0300
commite4307d136e803449156377ea794fc8b9f7c4db25 (patch)
tree3389227797829cd92b82464568a3b7a46609aa02
parent36cf6b52d1806ce0d28254f73aa02f8db18e6c76 (diff)
parent9a91d86a44b6cf870b118a0bdbd4a1a11ca23d77 (diff)
Merge pull request #6 from nextcloud/phpunit-update-for-apps
PHPUnit 6.5 for apps on master/14+
-rwxr-xr-xbefore_install.sh10
-rw-r--r--composer-phpunit5.json5
-rw-r--r--composer.json2
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"
}
}