Fixed shunit2 runner

This commit is contained in:
deajan 2016-09-02 13:27:39 +02:00
parent e5b0b89b70
commit a14431c828
2 changed files with 4 additions and 4 deletions

View File

@ -12,4 +12,4 @@ before_script:
mysql -e 'CREATE DATABASE travistest;'
script:
dev/tests/run_tests.sh travis
TRAVIS_RUN=true dev/tests/run_tests.sh

View File

@ -9,10 +9,10 @@ OBACKUP_DIR=${OBACKUP_DIR%%/dev*}
DEV_DIR="$OBACKUP_DIR/dev"
TESTS_DIR="$DEV_DIR/tests"
if [ "$1" == "travis" ]; then
CONF_DIR="$TESTS_DIR/conf-travis"
else
if [ $TRAVIS_RUN == false ]; then
CONF_DIR="$TESTS_DIR/conf-local"
else
CONF_DIR="$TESTS_DIR/conf-travis"
fi
LOCAL_CONF="local.conf"