Commit f0980e0d authored by ergonlogic's avatar ergonlogic

Issue #1830220: Remove Drupal 5 tests.

parent 92bf1e24
api = 2
core = 5.x
projects[] = "drupal"
......@@ -31,14 +31,6 @@ function provision_tests_drush_command() {
* Drush command to run the provision tests.
*/
function drush_provision_tests_run() {
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
$drupal5_tests = TRUE;
}
else {
$drupal5_tests = FALSE;
drush_log(dt('Please note that because you are running PHP 5.3 or greater, you cannot test installing Drupal 5 on this machine.'), 'warning');
}
if (!drush_confirm(dt('This command should only be run on a clean Aegir install, and data may be lost! Do you want to continue?'))) {
return drush_user_abort();
}
......@@ -47,39 +39,23 @@ function drush_provision_tests_run() {
$queue_status_initial = variable_get('hosting_queue_tasks_enabled', '0');
variable_set('hosting_queue_tasks_enabled', '0');
if ($drupal5_tests) {
drush_provision_tests_install_platform('drupal5');
}
drush_provision_tests_install_platform('drupal6');
drush_provision_tests_install_platform('drupal7');
drush_provision_tests_install_platform('openatrium');
// Install some sites.
if ($drupal5_tests) {
drush_provision_tests_install_site('drupal5', 'drupal5-default', 'default');
}
drush_provision_tests_install_site('drupal6', 'drupal6-default', 'default');
drush_provision_tests_install_site('drupal7', 'drupal7-standard', 'standard');
drush_provision_tests_install_site('drupal7', 'drupal7-minimal', 'minimal');
drush_provision_tests_install_site('openatrium', 'openatrium-openatrium', 'openatrium');
// Remove the sites.
if ($drupal5_tests) {
drush_provision_tests_remove_site('drupal5-default', 'default');
}
drush_provision_tests_remove_site('drupal6-default');
drush_provision_tests_remove_site('drupal7-standard');
drush_provision_tests_remove_site('drupal7-minimal');
drush_provision_tests_remove_site('openatrium-openatrium');
// Create some sites and migrate them.
if ($drupal5_tests) {
drush_provision_tests_install_platform('drupal5', 'drupal5_other');
drush_provision_tests_install_site('drupal5', 'drupal5-migrate-drupal5-other', 'default');
drush_provision_tests_migrate_site('drupal5-migrate-drupal5-other', 'drupal5_other');
drush_provision_tests_remove_site('drupal5-migrate-drupal5-other');
drush_provision_tests_remove_platform('drupal5_other');
}
drush_provision_tests_install_platform('drupal6', 'drupal6_other');
drush_provision_tests_install_site('drupal6', 'drupal6-migrate-drupal6-other', 'default');
drush_provision_tests_dl_module_to_site('token', 'drupal6-migrate-drupal6-other');
......@@ -94,23 +70,14 @@ function drush_provision_tests_run() {
drush_provision_tests_en_module_on_site('token', 'drupal7-migrate-drupal7-other');
drush_provision_tests_remove_site('drupal7-migrate-drupal7-other');
drush_provision_tests_remove_platform('drupal7_other');
// Create some sites, and upgrade them
if ($drupal5_tests) {
drush_provision_tests_install_site('drupal5', 'drupal5-upgrade-drupal7', 'default');
drush_provision_tests_migrate_site('drupal5-upgrade-drupal7', 'drupal6');
drush_provision_tests_migrate_site('drupal5-upgrade-drupal7', 'drupal7');
drush_provision_tests_remove_site('drupal5-upgrade-drupal7');
}
drush_provision_tests_install_site('drupal6', 'drupal6-upgrade-drupal7', 'default');
drush_provision_tests_migrate_site('drupal6-upgrade-drupal7', 'drupal7');
drush_provision_tests_remove_site('drupal6-upgrade-drupal7');
// Clean up a little.
if ($drupal5_tests) {
drush_provision_tests_remove_platform('drupal5');
}
drush_provision_tests_remove_platform('drupal6');
drush_provision_tests_remove_platform('drupal7');
drush_provision_tests_remove_platform('openatrium');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment