Skip to content

Commit

Permalink
Format source code.
Browse files Browse the repository at this point in the history
  • Loading branch information
robotdan committed Mar 22, 2021
1 parent aaedaa1 commit bea924b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.savant
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,18 @@ release = loadPlugin(id: "org.savantbuild.plugin:release-git:${savantVersion}")
target(name: "clean", description: "Cleans build directory") {
}

target(name: "compile", description: "Compiles the source code") {
target(name: "format", description: "Formats the source code") {
ProcessBuilder pb = new ProcessBuilder(
"go", "fmt")
.inheritIO()
.directory(new File("./pkg/fusionauth/"))

def process = pb.start()
process.consumeProcessOutput(System.out, System.err)
process.waitFor()
}

target(name: "compile", description: "Compiles the source code", dependsOn: ["format"]) {
}

target(name: "test", description: "Runs the project's unit tests", dependsOn: ["compile"]) {
Expand Down

0 comments on commit bea924b

Please sign in to comment.