run litmus scripts only if code in the dav app did change changed
This commit is contained in:
parent
b753e7631b
commit
09fff15021
4 changed files with 18 additions and 2 deletions
|
@ -21,6 +21,7 @@ addons:
|
|||
- realpath
|
||||
|
||||
before_install:
|
||||
- bash tests/travis/test_for_app.sh $APP
|
||||
- bash tests/travis/before_install.sh $DB
|
||||
|
||||
install:
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SCRIPT=`realpath $0`
|
||||
SCRIPTPATH=`dirname $SCRIPT`
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SCRIPT=`realpath $0`
|
||||
SCRIPTPATH=`dirname $SCRIPT`
|
||||
|
||||
|
|
17
tests/travis/test_for_app.sh
Executable file
17
tests/travis/test_for_app.sh
Executable 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
|
Loading…
Reference in a new issue