Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions build.savant
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018-2024, FusionAuth, All Rights Reserved
* Copyright (c) 2018-2025, FusionAuth, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -50,7 +50,7 @@ target(name: "clean", description: "Cleans the build directory") {
target(name: "compile", description: "Builds archives of the source and compiled versions of the code.", dependsOn: ["setup-python"]) {
def proc = "python3 setup.py sdist bdist_wheel".execute()
proc.consumeProcessOutput(System.out, System.err)
proc.waitFor()
assert proc.waitFor() == 0
}

target(name: "int", description: "Releases a local integration build of the project", dependsOn: ["compile"]) {
Expand Down Expand Up @@ -78,11 +78,11 @@ target(name: "test", description: "Runs the project's tests", dependsOn: ["compi
target(name: "setup-python", description: "Gets the python dependencies") {
def proc1 = "python3 -m pip install --user --upgrade setuptools".execute()
proc1.consumeProcessOutput(System.out, System.err)
proc1.waitFor()
assert proc1.waitFor() == 0

def proc2 = "python3 -m pip install --user --upgrade wheel twine requests deprecated".execute()
proc2.consumeProcessOutput(System.out, System.err)
proc2.waitFor()
assert proc2.waitFor() == 0
}

/**
Expand All @@ -104,8 +104,7 @@ target(name: "publish", description: "Publishes source and built versions of the

def process = pb.start()
process.consumeProcessOutput(System.out, System.err)
process.waitFor()
return process.exitValue() == 0
assert process.waitFor() == 0
}

target(name: "release", description: "Releases a full version of the project", dependsOn: ["int"]) {
Expand Down