summaryrefslogtreecommitdiffstats
path: root/tests/travis/changed_app.sh
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-10-29 09:54:33 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-10-29 10:14:45 +0100
commit9d35cacfda48529d882bd1628f39ef77eb5b4290 (patch)
treebdc785e4f066b57fc3eb53fdf9e665fdf748b849 /tests/travis/changed_app.sh
parent527ef76dd6e45c2776edbc90829323e0ca534214 (diff)
downloadnextcloud-server-9d35cacfda48529d882bd1628f39ef77eb5b4290.tar.gz
nextcloud-server-9d35cacfda48529d882bd1628f39ef77eb5b4290.zip
Make Travis CI pass when DAV was not touched
Diffstat (limited to 'tests/travis/changed_app.sh')
-rwxr-xr-xtests/travis/changed_app.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/travis/changed_app.sh b/tests/travis/changed_app.sh
new file mode 100755
index 00000000000..a4be0476573
--- /dev/null
+++ b/tests/travis/changed_app.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+#
+# ownCloud
+#
+# @author Joas Schilling
+# @author Thomas Müller
+# @copyright 2015 Thomas Müller thomas.mueller@tmit.eu
+#
+
+APP=$1
+
+FOUND=$(git diff ${TRAVIS_COMMIT_RANGE} | grep -- "^+++ b/apps/$APP/")
+
+if [ "x$FOUND" != 'x' ]; then
+ echo "1"
+else
+ echo "0"
+fi