Commanding Chaos for Coworking, Open Source and Creative Communities

Test Now! - Travis Integration for your Drupal Modules | Drupal Watchdog

Mon, 12/15/2014 - 12:02 -- rprice

Drupal 8 ready: drupal_ti supports both Drupal 7 and 8 modules. Use DRUPAL_TI_ENVIRONMENT="drupal-8" for your Drupal 8 modules. Tested: drupal_ti tests its own code base for both Drupal 7 and Drupal 8 modules. Modular architecture: drupal_ti has so called 'runners' and you can combine either e.g. "phpunit simpletest" or run them as separate workers by specifying a matrix. Environment aware: drupal_ti has a file for each environment, which makes the code generic for both Drupal 7 and 8. Examples provided: drupal_ti provides easy examples of the needed files in tests/drupal-{7,8}/drupal_ti_test. So you can get started easily! Extensible: By specifying DRUPAL_TI_SCRIPT_DIR_BEFORE or DRUPAL_TI_SCRIPT_DIR_AFTER you can easily create your own runners and environment includes that run before or after the main runners. This could even come from composer. Usable for non-travis CI: Because drupal-ti is just a command and because .travis.yml just has some environment vars, you can just copy the main declarations to some environment.sh file, set the TRAVIS_BUILD_DIR and use it locally, too.