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

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-02-11 11:51:32 +0300
committerGitHub <noreply@github.com>2021-02-11 11:51:32 +0300
commit317a1a951e08af401b78409507d55296d9cb1d13 (patch)
tree002f49abe73aa274531d059f8362d349e6ad7c04
parenta1431a1f2a6eff48dcfe2d69a52da4e5158279c1 (diff)
parent345950641a92b85afeab4c84c3cbdebdb21c07b2 (diff)
Merge pull request #5121 from nextcloud/techdebt/noid/run-all-tests-on-info.xml-change
Run all tests on info.xml modifications
-rwxr-xr-xtests/drone-run-acceptance-tests.sh2
-rwxr-xr-xtests/drone-run-integration-tests.sh2
-rwxr-xr-xtests/drone-run-php-tests.sh2
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/drone-run-acceptance-tests.sh b/tests/drone-run-acceptance-tests.sh
index fac071470..df5ac683b 100755
--- a/tests/drone-run-acceptance-tests.sh
+++ b/tests/drone-run-acceptance-tests.sh
@@ -8,6 +8,8 @@ echo "========================="
[[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | wc -l) -eq 0 ]] && echo "No files are modified => merge commit" && exit 0
+[[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | grep "appinfo/info.xml") -gt 0 ]] && echo "info.xml is modified" && exit 0
+
[[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | grep --invert-match "^tests/" | grep -c ".php$") -gt 0 ]] && echo "PHP files are modified" && exit 0
[[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | grep -c "^tests/acceptance/") -gt 0 ]] && echo "Acceptance test files are modified" && exit 0
diff --git a/tests/drone-run-integration-tests.sh b/tests/drone-run-integration-tests.sh
index 4563eaefc..3b9dffd11 100755
--- a/tests/drone-run-integration-tests.sh
+++ b/tests/drone-run-integration-tests.sh
@@ -8,6 +8,8 @@ echo "========================="
[[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | wc -l) -eq 0 ]] && echo "No files are modified => merge commit" && exit 0
+[[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | grep "appinfo/info.xml") -gt 0 ]] && echo "info.xml is modified" && exit 0
+
[[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | grep --invert-match "^tests/" | grep -c ".php$") -gt 0 ]] && echo "PHP files are modified" && exit 0
[[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | grep -c "^tests/integration/") -gt 0 ]] && echo "Integration test files are modified" && exit 0
diff --git a/tests/drone-run-php-tests.sh b/tests/drone-run-php-tests.sh
index 4c6611475..4a60cc66f 100755
--- a/tests/drone-run-php-tests.sh
+++ b/tests/drone-run-php-tests.sh
@@ -8,6 +8,8 @@ echo "========================="
[[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | wc -l) -eq 0 ]] && echo "No files are modified => merge commit" && exit 0
+[[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | grep "appinfo/info.xml") -gt 0 ]] && echo "info.xml is modified" && exit 0
+
[[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | grep --invert-match "^tests/" | grep -c ".php$") -gt 0 ]] && echo "PHP files are modified" && exit 0
[[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | grep -c "^tests/php/") -gt 0 ]] && echo "PHP test files are modified" && exit 0