-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Hi, this might be me not entirely understanding the travis test stack properly, but I have a request.
I would like to be able to run all drupal simpletests with my module enabled when I push code to a repo. This is so as to make sure that my module does not break core functionality.
As this takes hours however, I would like to only run tests that my module provides when creating pull requests, so that we don't have to spend hours waiting for tests before merging code.
Drupal_ti uses the DRUPAL_TI_SIMPLETEST_GROUP variable to tell the simpletest runner which tests to limit by, and TRAVIS_PULL_REQUEST tells me whether on not I want the runner to filter tests.
I've attempted to change the variable like this:
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
echo 'Scheduling all simpletests to be run.'
else
echo 'Scheduling my_module simpletests to be run.'
export DRUPAL_TI_SIMPLETEST_GROUP='my_module'
fiBut this doesn't seem to work as by the time the simpltest runner 'script.sh' runs, it has reset DRUPAL_TI_SIMPLETEST_GROUP to whatever is set in the .travis.yml.
Is there any way that I can achieve this without patching the runner script as part of my environment setup?