Browse Source

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

remotes/origin/dav-zip-folder
Thomas Müller 10 years ago
parent
commit
09fff15021
  1. 1
      .travis.yml
  2. 1
      apps/dav/tests/travis/litmus-v1.sh
  3. 1
      apps/dav/tests/travis/litmus-v2.sh
  4. 17
      tests/travis/test_for_app.sh

1
.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:

1
apps/dav/tests/travis/litmus-v1.sh

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

1
apps/dav/tests/travis/litmus-v2.sh

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

17
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
Loading…
Cancel
Save