run litmus scripts only if code in the dav app did change changed

This commit is contained in:
Thomas Müller 2015-10-28 08:41:23 +01:00
parent b753e7631b
commit 09fff15021
4 changed files with 18 additions and 2 deletions

View file

@ -21,6 +21,7 @@ addons:
- realpath
before_install:
- bash tests/travis/test_for_app.sh $APP
- bash tests/travis/before_install.sh $DB
install:

View file

@ -1,5 +1,4 @@
#!/usr/bin/env bash
SCRIPT=`realpath $0`
SCRIPTPATH=`dirname $SCRIPT`

View file

@ -1,5 +1,4 @@
#!/usr/bin/env bash
SCRIPT=`realpath $0`
SCRIPTPATH=`dirname $SCRIPT`

17
tests/travis/test_for_app.sh Executable file
View file

@ -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