1
1
/*
2
- * Copyright (c) 2018-2024 , FusionAuth, All Rights Reserved
2
+ * Copyright (c) 2018-2025 , FusionAuth, All Rights Reserved
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -50,7 +50,7 @@ target(name: "clean", description: "Cleans the build directory") {
50
50
target(name: "compile", description: "Builds archives of the source and compiled versions of the code.", dependsOn: ["setup-python"]) {
51
51
def proc = "python3 setup.py sdist bdist_wheel".execute()
52
52
proc.consumeProcessOutput(System.out, System.err)
53
- proc.waitFor()
53
+ assert proc.waitFor() == 0
54
54
}
55
55
56
56
target(name: "int", description: "Releases a local integration build of the project", dependsOn: ["compile"]) {
@@ -78,11 +78,11 @@ target(name: "test", description: "Runs the project's tests", dependsOn: ["compi
78
78
target(name: "setup-python", description: "Gets the python dependencies") {
79
79
def proc1 = "python3 -m pip install --user --upgrade setuptools".execute()
80
80
proc1.consumeProcessOutput(System.out, System.err)
81
- proc1.waitFor()
81
+ assert proc1.waitFor() == 0
82
82
83
83
def proc2 = "python3 -m pip install --user --upgrade wheel twine requests deprecated".execute()
84
84
proc2.consumeProcessOutput(System.out, System.err)
85
- proc2.waitFor()
85
+ assert proc2.waitFor() == 0
86
86
}
87
87
88
88
/**
@@ -104,8 +104,7 @@ target(name: "publish", description: "Publishes source and built versions of the
104
104
105
105
def process = pb.start()
106
106
process.consumeProcessOutput(System.out, System.err)
107
- process.waitFor()
108
- return process.exitValue() == 0
107
+ assert process.waitFor() == 0
109
108
}
110
109
111
110
target(name: "release", description: "Releases a full version of the project", dependsOn: ["int"]) {
0 commit comments