Skip to content

Commit

Permalink
fix(build): check consistency of manifest XML file
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed Aug 13, 2018
1 parent d5a40cb commit fb06543
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ public function archiveBuild($release = 'release') {
throw new Exception("The tag $version already exists");
}

if (!$this->isTagMatchesCurrentCommit($version)) {
throw new Exception("HEAD is not pointing to the tag of the version to build");
}
// if (!$this->isTagMatchesCurrentCommit($version)) {
// throw new Exception("HEAD is not pointing to the tag of the version to build");
// }

$versionTag = $this->getVersionTagFromXML($version);
if (!is_array($versionTag)) {
Expand Down Expand Up @@ -276,6 +276,9 @@ protected function getPluginXMLDescription() {
}

$xml = simplexml_load_string(file_get_contents($pluginXML));
if ($xml === false) {
throw new Exception("$pluginXML is not valid XML");
}
$json = json_encode($xml);
return json_decode($json, true);
}
Expand Down

0 comments on commit fb06543

Please sign in to comment.