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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rw-r--r--apps/dav/tests/travis/litmus-v1.sh1
-rw-r--r--apps/dav/tests/travis/litmus-v2.sh1
-rwxr-xr-xtests/travis/test_for_app.sh17
4 files changed, 18 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 98cf0354730..74dbfe00f01 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,6 +21,7 @@ addons:
- realpath
before_install:
+ - bash tests/travis/test_for_app.sh $APP
- bash tests/travis/before_install.sh $DB
install:
diff --git a/apps/dav/tests/travis/litmus-v1.sh b/apps/dav/tests/travis/litmus-v1.sh
index 587561ed29f..ab0690f392e 100644
--- a/apps/dav/tests/travis/litmus-v1.sh
+++ b/apps/dav/tests/travis/litmus-v1.sh
@@ -1,5 +1,4 @@
#!/usr/bin/env bash
-
SCRIPT=`realpath $0`
SCRIPTPATH=`dirname $SCRIPT`
diff --git a/apps/dav/tests/travis/litmus-v2.sh b/apps/dav/tests/travis/litmus-v2.sh
index 40a06a26e65..892ad327d3b 100644
--- a/apps/dav/tests/travis/litmus-v2.sh
+++ b/apps/dav/tests/travis/litmus-v2.sh
@@ -1,5 +1,4 @@
#!/usr/bin/env bash
-
SCRIPT=`realpath $0`
SCRIPTPATH=`dirname $SCRIPT`
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