Changeset 8075
- Timestamp:
- 03/25/08 15:38:14 (1 year ago)
- Files:
-
- branches/1.1/data/bin/release.php (modified) (5 diffs)
- branches/1.1/package.xml.tmpl (modified) (3 diffs)
- branches/1.1/test/bin/prove.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/data/bin/release.php
r4743 r8075 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); branches/1.1/package.xml.tmpl
r6116 r8075 20 20 <version> 21 21 <release>##SYMFONY_VERSION##</release> 22 <api>1. 0.0</api>22 <api>1.1.0</api> 23 23 </version> 24 24 <stability> … … 65 65 <file role="doc" baseinstalldir="symfony" name="COPYRIGHT" /> 66 66 <file role="doc" baseinstalldir="symfony" name="LICENSE" /> 67 <file role="doc" baseinstalldir="symfony" name="licenses/LICENSE.Creole" />68 67 <file role="doc" baseinstalldir="symfony" name="licenses/LICENSE.ICU" /> 69 68 <file role="doc" baseinstalldir="symfony" name="licenses/LICENSE.lime" /> 70 <file role="doc" baseinstalldir="symfony" name="licenses/LICENSE.pake" />71 <file role="doc" baseinstalldir="symfony" name="licenses/LICENSE.phing" />72 <file role="doc" baseinstalldir="symfony" name="licenses/LICENSE.PHPMailer" />73 69 <file role="doc" baseinstalldir="symfony" name="licenses/LICENSE.prado" /> 74 <file role="doc" baseinstalldir="symfony" name="licenses/LICENSE.Propel" />75 70 <file role="doc" baseinstalldir="symfony" name="licenses/LICENSE.prototype" /> 76 71 <file role="doc" baseinstalldir="symfony" name="licenses/LICENSE.script.aculo.us" /> … … 81 76 <required> 82 77 <php> 83 <min>5. 0.0</min>78 <min>5.1.3</min> 84 79 </php> 85 80 <pearinstaller> branches/1.1/test/bin/prove.php
r7446 r8075 51 51 ))); 52 52 53 $h->run();53 exit($h->run() ? 0 : 1);

