diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-29 14:14:36 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-29 14:14:36 +0100 |
commit | b840fc7c5896cc638d2ada2c6315e3852b55405e (patch) | |
tree | 8f367a81993215953b8873890c27da713041b602 /tests | |
parent | 054d4aeb8901d4b00e8ded3e92716f72c0a3d2ed (diff) | |
parent | 9d35cacfda48529d882bd1628f39ef77eb5b4290 (diff) | |
download | nextcloud-server-b840fc7c5896cc638d2ada2c6315e3852b55405e.tar.gz nextcloud-server-b840fc7c5896cc638d2ada2c6315e3852b55405e.zip |
Merge pull request #20134 from owncloud/pass-with-skipping
Make Travis CI pass when DAV was not touched
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/travis/changed_app.sh | 18 | ||||
-rwxr-xr-x | tests/travis/test_for_app.sh | 17 |
2 files changed, 18 insertions, 17 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 diff --git a/tests/travis/test_for_app.sh b/tests/travis/test_for_app.sh deleted file mode 100755 index a97c66dba83..00000000000 --- a/tests/travis/test_for_app.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/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 |