|
@@ -60,7 +60,7 @@ discard block |
|
|
block discarded – undo |
|
60
|
60
|
|
|
61
|
61
|
// Check the version number conforms to semver format - 2.0.1 or 3.0.0[-beta][+build] |
|
62
|
62
|
if (!preg_match('/^[0-9]+\.[0-9]+\.[0-9]+([-+].*)?$/', $version, $match)) { |
|
63
|
|
- $this->stderr("!! The version number is not a valid version it must be in the format '#.#.#' or '#.#.#[-description][+build]'.\n", Console::FG_RED); |
|
|
63
|
+ $this->stderr("!! The version number is not a valid version it must be in the format '#.#.#' or '#.#.#[-description][+build]'.\n", Console::FG_RED); |
|
64
|
64
|
return ExitCode::UNSPECIFIED_ERROR; |
|
65
|
65
|
} |
|
66
|
66
|
|
|
@@ -75,7 +75,7 @@ discard block |
|
|
block discarded – undo |
|
75
|
75
|
|
|
76
|
76
|
// Check to see if the javascript has been built since changing |
|
77
|
77
|
if (!$this->confirm("=> Have you run the neon build process?\n")) { |
|
78
|
|
- $this->stdout("-> Please run the build process before continuing! =>./neo core/build/neon\n", Console::FG_CYAN); |
|
|
78
|
+ $this->stdout("-> Please run the build process before continuing! =>./neo core/build/neon\n", Console::FG_CYAN); |
|
79
|
79
|
return ExitCode::UNSPECIFIED_ERROR; |
|
80
|
80
|
} |
|
81
|
81
|
|
|
@@ -83,7 +83,7 @@ discard block |
|
|
block discarded – undo |
|
83
|
83
|
// need to make sure that the version to update to is specified and checked in, in the composer.json file |
|
84
|
84
|
// this ensures the tag will have the correct version listed |
|
85
|
85
|
if (!$this->confirm("=> Are your tests passing?\n")) { |
|
86
|
|
- $this->stdout("-> Please run all of the tests! =>./codecept run\n", Console::FG_CYAN); |
|
|
86
|
+ $this->stdout("-> Please run all of the tests! =>./codecept run\n", Console::FG_CYAN); |
|
87
|
87
|
return ExitCode::UNSPECIFIED_ERROR; |
|
88
|
88
|
} |
|
89
|
89
|
|
|
@@ -100,10 +100,10 @@ discard block |
|
|
block discarded – undo |
|
100
|
100
|
$process->wait(); |
|
101
|
101
|
$gitVersions = explode("\n", $process->getOutput()); |
|
102
|
102
|
$versions = []; |
|
103
|
|
- foreach($gitVersions as $v) { |
|
104
|
|
- $v = substr($v, strrpos($v, "/")+1); |
|
|
103
|
+ foreach ($gitVersions as $v) { |
|
|
104
|
+ $v = substr($v, strrpos($v, "/") + 1); |
|
105
|
105
|
if ($v == '') continue; |
|
106
|
|
- $versions[] = $v ; |
|
|
106
|
+ $versions[] = $v; |
|
107
|
107
|
} |
|
108
|
108
|
dp($versions); |
|
109
|
109
|
if (in_array($version, $versions)) { |