summaryrefslogtreecommitdiffstats
path: root/tests/travis/test_for_app.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/travis/test_for_app.sh')
-rwxr-xr-xtests/travis/test_for_app.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/travis/test_for_app.sh b/tests/travis/test_for_app.sh
new file mode 100755
index 00000000000..a97c66dba83
--- /dev/null
+++ b/tests/travis/test_for_app.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+#
+# ownCloud
+#
+# @author Thomas Müller
+# @copyright 2015 Thomas Müller thomas.mueller@tmit.eu
+#
+
+set -e
+APP=$1
+
+if git diff ${TRAVIS_COMMIT_RANGE} | grep -- "^+++ b/apps/$APP/"; then
+ echo "Executing this test config ...."
+else
+ echo "Test config is not relevant for this change. terminating"
+ exit 1
+fi