-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix Mercurial tests and add tag validation #102
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,13 +136,20 @@ protected function execute(InputInterface $input, OutputInterface $output) | |
); | ||
Context::getInstance()->setParameter('new-version', $newVersion); | ||
|
||
foreach (array('prerequisites', 'pre-release-actions', 'post-release-actions') as $listName) { | ||
foreach(Context::getInstance()->getList($listName) as $action) { | ||
$action->validateContext(); | ||
} | ||
} | ||
Context::get('version-persister')->validateContext(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As discussed, because the generator work is a bit different than the other actions and the persister and there's no need at the time. Can we merge ? please, pretty please, PLEASE ! PLEASE ! |
||
|
||
$this->executeActionListIfExist('pre-release-actions'); | ||
|
||
$this->getOutput()->writeSmallTitle('Release process'); | ||
$this->getOutput()->indent(); | ||
|
||
$this->getOutput()->writeln("A new version named [<yellow>$newVersion</yellow>] is going to be released"); | ||
Context::get('version-persister')->save($newVersion); | ||
Context::get('version-persister')->save(); | ||
$this->getOutput()->writeln('Release: <green>Success</green>'); | ||
|
||
$this->getOutput()->unIndent(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the project RMT | ||
* | ||
* Copyright (c) 2013, Liip AG, http://www.liip.ch | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Liip\RMT\Exception; | ||
|
||
use Liip\RMT\Exception as BaseException; | ||
|
||
class InvalidTagNameException extends BaseException | ||
{ | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the project RMT | ||
* | ||
* Copyright (c) 2013, Liip AG, http://www.liip.ch | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Liip\RMT\Exception; | ||
|
||
use Liip\RMT\Exception as BaseException; | ||
|
||
class TagAlreadyExistsException extends BaseException | ||
{ | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following our discussion, I guess we can also remove
prerequisites
from that list as there have already been executed. Isn't it?