Upgraded setversion.d to also run mvn clean test.
This commit is contained in:
parent
9e8574ce21
commit
c81da242ef
|
@ -5,7 +5,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>ace-of-shades-2</artifactId>
|
<artifactId>ace-of-shades-2</artifactId>
|
||||||
<groupId>nl.andrewl</groupId>
|
<groupId>nl.andrewl</groupId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>ace-of-shades-2</artifactId>
|
<artifactId>ace-of-shades-2</artifactId>
|
||||||
<groupId>nl.andrewl</groupId>
|
<groupId>nl.andrewl</groupId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -7,7 +7,7 @@
|
||||||
<groupId>nl.andrewl</groupId>
|
<groupId>nl.andrewl</groupId>
|
||||||
<artifactId>ace-of-shades-2</artifactId>
|
<artifactId>ace-of-shades-2</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0.0</version>
|
||||||
<modules>
|
<modules>
|
||||||
<module>core</module>
|
<module>core</module>
|
||||||
<module>server</module>
|
<module>server</module>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>ace-of-shades-2</artifactId>
|
<artifactId>ace-of-shades-2</artifactId>
|
||||||
<groupId>nl.andrewl</groupId>
|
<groupId>nl.andrewl</groupId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ module setversion;
|
||||||
|
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
import std.file : write, readText;
|
import std.file : write, readText;
|
||||||
|
import std.process;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
string newVersion = getMainVersion();
|
string newVersion = getMainVersion();
|
||||||
|
@ -20,6 +21,9 @@ void main() {
|
||||||
write(pomFile, xml);
|
write(pomFile, xml);
|
||||||
writefln!"Updated %s to version %s"(pomFile, newVersion);
|
writefln!"Updated %s to version %s"(pomFile, newVersion);
|
||||||
}
|
}
|
||||||
|
writeln("Running mvn clean test on updated projects.");
|
||||||
|
auto pid = spawnShell("mvn clean test", stdin, stdout, stderr);
|
||||||
|
wait(pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
string getMainVersion() {
|
string getMainVersion() {
|
||||||
|
|
Loading…
Reference in New Issue