diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-30 09:47:27 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-30 09:47:27 +0100 |
commit | be357ecd78309d4e092e5fcafaf1bfd8132b603f (patch) | |
tree | b3cfccad0efddbb35ab4e85cffec9277036e807c /tests/drone-run-php-tests.sh | |
parent | 0de48617ec0913ea508854fb4bee3c99074e1ea9 (diff) | |
download | nextcloud-server-be357ecd78309d4e092e5fcafaf1bfd8132b603f.tar.gz nextcloud-server-be357ecd78309d4e092e5fcafaf1bfd8132b603f.zip |
Also run all tests when drone config is modified
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/drone-run-php-tests.sh')
-rwxr-xr-x | tests/drone-run-php-tests.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/drone-run-php-tests.sh b/tests/drone-run-php-tests.sh index 9552141adcb..0a215f7bf3b 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 -c ".yml") -gt 0 ]] && echo "YML files are modified" && exit 0 + [[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | grep -c ".xml") -gt 0 ]] && echo "info.xml files are modified" && exit 0 [[ $(git diff --name-only origin/$DRONE_TARGET_BRANCH...$DRONE_COMMIT_SHA | grep -c ".php$") -gt 0 ]] && echo "PHP files are modified" && exit 0 |