Development

Changeset 8073

You must first sign up to be able to contribute.

Changeset 8073

Show
Ignore:
Timestamp:
03/25/08 15:33:29 (1 year ago)
Author:
fabien
Message:

updated the release.php script

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tags/RELEASE_1_1_0_BETA2/data/bin/release.php

    r4743 r8073  
    1212 * Release script. 
    1313 * 
    14  * Usage: php data/bin/release.php 1.0.0 stable 
     14 * Usage: php data/bin/release.php 1.1.0 stable 
    1515 * 
    1616 * @package    symfony 
     
    1818 * @version    SVN: $Id$ 
    1919 */ 
     20require_once(dirname(__FILE__).'/../../lib/exception/sfException.class.php'); 
    2021require_once(dirname(__FILE__).'/../../lib/task/sfFilesystem.class.php'); 
    2122require_once(dirname(__FILE__).'/../../lib/util/sfFinder.class.php'); 
     
    4849  if (!isset($version)) 
    4950  { 
    50     throw new Exception('unable to find last svn revision'); 
     51    throw new Exception('Unable to find last SVN revision.'); 
    5152  } 
    5253 
     
    5960} 
    6061 
    61 print 'releasing symfony version "'.$version."\"\n"
     62print sprintf("Releasing symfony version \"%s\".\n", $version)
    6263 
    63 // Test 
    64 $h = new lime_harness(new lime_output_color()); 
     64// tests 
     65$result = $filesystem->sh('php test/bin/prove.php'); 
    6566 
    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) 
     67if (0 != $result) 
    7868{ 
    7969  throw new Exception('Some tests failed. Release process aborted!'); 
     
    113103$filesystem->remove(getcwd().DIRECTORY_SEPARATOR.'package.xml'); 
    114104 
    115 // copy .tgz as symfony-latest.tgz 
    116 $filesystem->copy(getcwd().'/symfony-'.$version.'.tgz', getcwd().'/symfony-latest.tgz'); 
    117  
    118105exit(0); 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.