diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-28 10:41:23 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-28 11:59:09 +0300 |
commit | 09fff150216d323054256f44ef7d6cc150c4aebc (patch) | |
tree | ca3129758224ea20d58e603814ffdc2021071517 | |
parent | b753e7631bd318a1f428d8925dec64693879fd0d (diff) |
run litmus scripts only if code in the dav app did change changed
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | apps/dav/tests/travis/litmus-v1.sh | 1 | ||||
-rw-r--r-- | apps/dav/tests/travis/litmus-v2.sh | 1 | ||||
-rwxr-xr-x | tests/travis/test_for_app.sh | 17 |
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 |