Changeset 8073
- Timestamp:
- 03/25/08 15:33:29 (7 months ago)
- Files:
-
- tags/RELEASE_1_1_0_BETA2/data/bin/release.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tags/RELEASE_1_1_0_BETA2/data/bin/release.php
r4743 r8073 12 12 * Release script. 13 13 * 14 * Usage: php data/bin/release.php 1. 0.0 stable14 * Usage: php data/bin/release.php 1.1.0 stable 15 15 * 16 16 * @package symfony … … 18 18 * @version SVN: $Id$ 19 19 */ 20 require_once(dirname(__FILE__).'/../../lib/exception/sfException.class.php'); 20 21 require_once(dirname(__FILE__).'/../../lib/task/sfFilesystem.class.php'); 21 22 require_once(dirname(__FILE__).'/../../lib/util/sfFinder.class.php'); … … 48 49 if (!isset($version)) 49 50 { 50 throw new Exception(' unable to find last svn revision');51 throw new Exception('Unable to find last SVN revision.'); 51 52 } 52 53 … … 59 60 } 60 61 61 print 'releasing symfony version "'.$version."\"\n";62 print sprintf("Releasing symfony version \"%s\".\n", $version); 62 63 63 // Test64 $ h = new lime_harness(new lime_output_color());64 // tests 65 $result = $filesystem->sh('php test/bin/prove.php'); 65 66 66 $h->base_dir = realpath(dirname(__FILE__).'/../../test'); 67 68 // unit tests 69 $h->register_glob($h->base_dir.'/unit/*/*Test.php'); 70 71 // functional tests 72 $h->register_glob($h->base_dir.'/functional/*Test.php'); 73 $h->register_glob($h->base_dir.'/functional/*/*Test.php'); 74 75 $ret = $h->run(); 76 77 if (!$ret) 67 if (0 != $result) 78 68 { 79 69 throw new Exception('Some tests failed. Release process aborted!'); … … 113 103 $filesystem->remove(getcwd().DIRECTORY_SEPARATOR.'package.xml'); 114 104 115 // copy .tgz as symfony-latest.tgz116 $filesystem->copy(getcwd().'/symfony-'.$version.'.tgz', getcwd().'/symfony-latest.tgz');117 118 105 exit(0);