summaryrefslogtreecommitdiffstats
path: root/provision-tests
diff options
context:
space:
mode:
authorChristopher Gervais2013-06-18 18:19:46 (GMT)
committerChristopher Gervais2013-06-18 18:19:46 (GMT)
commitf0980e0d1dac70ef761c1216bc858ce12e1abf02 (patch)
treeda2912e01332491e7acb741dce6a15d896a54d3e /provision-tests
parent92bf1e24afccf1e32fe3cdec4aabde76871e16c4 (diff)
Issue #1830220: Remove Drupal 5 tests.
Diffstat (limited to 'provision-tests')
-rw-r--r--provision-tests/makes/drupal5.build4
-rw-r--r--provision-tests/provision_tests.drush.inc41
2 files changed, 4 insertions, 41 deletions
diff --git a/provision-tests/makes/drupal5.build b/provision-tests/makes/drupal5.build
deleted file mode 100644
index 28fedd8..0000000
--- a/provision-tests/makes/drupal5.build
+++ /dev/null
@@ -1,4 +0,0 @@
-api = 2
-
-core = 5.x
-projects[] = "drupal"
diff --git a/provision-tests/provision_tests.drush.inc b/provision-tests/provision_tests.drush.inc
index 950c995..96e55f9 100644
--- a/provision-tests/provision_tests.drush.inc
+++ b/provision-tests/provision_tests.drush.inc
@@ -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');