Skip to content
Snippets Groups Projects
Commit b840fc7c authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #20134 from owncloud/pass-with-skipping

Make Travis CI pass when DAV was not touched
parents 054d4aeb 9d35cacf
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ php: ...@@ -5,7 +5,7 @@ php:
env: env:
global: global:
- APP=dav - TEST_DAV=$(tests/travis/changed_app.sh dav)
- TC=litmus-v2 - TC=litmus-v2
matrix: matrix:
- DB=sqlite - DB=sqlite
...@@ -21,20 +21,22 @@ addons: ...@@ -21,20 +21,22 @@ addons:
- realpath - realpath
before_install: before_install:
- bash tests/travis/test_for_app.sh $APP - sh -c "if [ '$TEST_DAV' = '1' ]; then bash tests/travis/before_install.sh $DB; fi"
- bash tests/travis/before_install.sh $DB
install: install:
- bash tests/travis/install.sh $DB - sh -c "if [ '$TEST_DAV' = '1' ]; then bash tests/travis/install.sh $DB; fi"
script: script:
- bash apps/$APP/tests/travis/$TC.sh - sh -c "if [ '$TEST_DAV' != '1' ]; then echo \"Not testing DAV\"; fi"
- sh -c "if [ '$TEST_DAV' = '1' ]; then echo \"Testing DAV\"; fi"
- sh -c "if [ '$TEST_DAV' = '1' ]; then bash apps/dav/tests/travis/$TC.sh; fi"
matrix: matrix:
include: include:
- php: 5.4 - php: 5.4
env: DB=pgsql;TC=litmus-v1;APP=dav env: DB=pgsql;TC=litmus-v1
# - php: 5.4 # - php: 5.4
# env: DB=mysql;TC=caldavtester;APP=dav # env: DB=mysql;TC=caldavtester
fast_finish: true fast_finish: true
...@@ -2,16 +2,17 @@ ...@@ -2,16 +2,17 @@
# #
# ownCloud # ownCloud
# #
# @author Joas Schilling
# @author Thomas Müller # @author Thomas Müller
# @copyright 2015 Thomas Müller thomas.mueller@tmit.eu # @copyright 2015 Thomas Müller thomas.mueller@tmit.eu
# #
set -e
APP=$1 APP=$1
if git diff ${TRAVIS_COMMIT_RANGE} | grep -- "^+++ b/apps/$APP/"; then FOUND=$(git diff ${TRAVIS_COMMIT_RANGE} | grep -- "^+++ b/apps/$APP/")
echo "Executing this test config ...."
if [ "x$FOUND" != 'x' ]; then
echo "1"
else else
echo "Test config is not relevant for this change. terminating" echo "0"
exit 1
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment