diff --git a/.travis.yml b/.travis.yml index 039e63cd..0675fc8e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,8 +44,8 @@ before_script: # Mysql might time out for long tests, increase the wait timeout. - mysql -e 'SET @@GLOBAL.wait_timeout=1200' script: - - $ISLANDORA_DIR/tests/scripts/travis_script.sh sites/all/modules/islandora - - php scripts/run-tests.sh --php `phpenv which php` --url http://localhost:8081 --verbose "Islandora" + - $ISLANDORA_DIR/tests/scripts/travis_script.sh + - $ISLANDORA_DIR/tests/scripts/run_tests.sh "Islandora" after_failure: - $ISLANDORA_DIR/tests/scripts/travis_after_failure.sh notifications: diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100644 index 00000000..dd8dda79 --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# Wrapper for the test executing function so we only have to change it in one place. +# The module name gets passed in as a command line arg. +php scripts/run-tests.sh --php `phpenv which php` --url http://localhost:8081 --verbose $1