Changeset 30
- Timestamp:
- 09/22/07 06:23:10 (1 year ago)
- Files:
-
- trunk/build/install.php (modified) (1 diff)
- trunk/build/makelos.php (modified) (1 diff)
- trunk/build/testing_config.php (modified) (2 diffs)
- trunk/src/includes/editam/installers/editam_installer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/install.php
r23 r30 267 267 if(preg_match('/builds\/(.+)\.zip/', $build_serults, $match)){ 268 268 echo "Will use {$match[1]}\n"; 269 $options['build_name'] = $match[1]; 269 270 } 270 271 trunk/build/makelos.php
r20 r30 36 36 37 37 echo "Exporting Editam.\n"; 38 system("svn export../src ".AK_TMP_DIR."/$version_tag");38 empty($prefix) ? system("svn export ../src ".AK_TMP_DIR."/$version_tag") : system("cp -R ../src ".AK_TMP_DIR."/$version_tag"); 39 39 40 40 echo "Adding the Akelos Framework.\n"; 41 system("svn export".AK_FRAMEWORK_DIR." ".AK_TMP_DIR."/$version_tag/includes/akelos");41 empty($prefix) ? system("svn export ".AK_FRAMEWORK_DIR." ".AK_TMP_DIR."/$version_tag/includes/akelos") : system("cp -R ".AK_FRAMEWORK_DIR." ".AK_TMP_DIR."/$version_tag/includes/akelos"); 42 42 43 43 echo "Removing unnecesary Akelos Framework files.\n"; trunk/build/testing_config.php
r28 r30 2 2 3 3 /** 4 * WARNING USING THIS CONFIGURATION FILE WITHOUT KNOWING WHAT IS GOING ON IS A DANGEROUS, 5 * DONT USE THIS FILE UNLESS YOU KNOW WHAT IS IT FOR 6 * 4 7 * This is a sample configuration file for setting up an Editam application and running its unit tests 5 8 * … … 42 45 mysql_query("CREATE DATABASE {$options['testing_database_name']};"); 43 46 44 // Uncomment this for avoiding manual config/config.php removal 45 // (`rm -rf {$options['path']}`); 47 (`rm -rf {$options['path']}`); 46 48 47 49 function after_editam_install($options) 48 50 { 49 echo "Finished setting up the application running unit tests now."; 51 mysql_query("DROP DATABASE {$options['testing_database_name']};"); 52 mysql_query("CREATE DATABASE {$options['testing_database_name']};"); 53 54 echo "Removing generated builds\n"; 55 (`rm -rf builds/{$options['build_name']}*`); 56 57 echo "Finished setting up the application running unit tests now.\n"; 50 58 chdir($options['path'].'/includes/editam'); 51 echosystem('./script/test unit');59 system('./script/test unit'); 52 60 } 53 61 trunk/src/includes/editam/installers/editam_installer.php
r13 r30 257 257 function uninstallProfiles($version, $profiles) 258 258 { 259 $this->_installOrUninstallProfile(' install', $version, $profiles);259 $this->_installOrUninstallProfile('uninstall', $version, $profiles); 260 260 } 261 261
