Browse Source

Wrapping up the test run call so we only have to change it in one place if we deviate

pull/700/head
Daniel Lamb 8 years ago
parent
commit
8505ba6215
  1. 4
      .travis.yml
  2. 5
      tests/scripts/run_tests.sh

4
.travis.yml

@ -44,8 +44,8 @@ before_script:
# Mysql might time out for long tests, increase the wait timeout. # Mysql might time out for long tests, increase the wait timeout.
- mysql -e 'SET @@GLOBAL.wait_timeout=1200' - mysql -e 'SET @@GLOBAL.wait_timeout=1200'
script: script:
- $ISLANDORA_DIR/tests/scripts/travis_script.sh sites/all/modules/islandora - $ISLANDORA_DIR/tests/scripts/travis_script.sh
- php scripts/run-tests.sh --php `phpenv which php` --url http://localhost:8081 --verbose "Islandora" - $ISLANDORA_DIR/tests/scripts/run_tests.sh "Islandora"
after_failure: after_failure:
- $ISLANDORA_DIR/tests/scripts/travis_after_failure.sh - $ISLANDORA_DIR/tests/scripts/travis_after_failure.sh
notifications: notifications:

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