Build improvements.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Mark Nellemann 2023-06-24 09:04:58 +02:00
parent 1ee63f7752
commit 38edd74f8d
4 changed files with 11 additions and 11 deletions

View file

@ -7,17 +7,17 @@ steps:
- name: test - name: test
image: eclipse-temurin:8-jdk image: eclipse-temurin:8-jdk
commands: commands:
- ./gradlew test - ./gradlew --quiet --no-daemon test
- name: build - name: build
image: eclipse-temurin:8-jdk image: eclipse-temurin:8-jdk
environment: environment:
AUTH_TOKEN: # Gitea access token ENV variable AUTH_TOKEN: # Gitea access token ENV variable
from_secret: auth # Name of DroneCI secret exposed above from_secret: AUTH_TOKEN # Name of DroneCI secret exposed above
commands: commands:
- ./gradlew build packages - ./gradlew --quiet --no-daemon build packages
- for file in build/libs/*-all.jar ; do curl --user "${DRONE_REPO_OWNER}:$${AUTH_TOKEN}" --upload-file "$${file}" "https://git.data.coop/api/packages/${DRONE_REPO_OWNER}/generic/${DRONE_REPO_NAME}/${DRONE_TAG}/$(basename $file)" ; done - for file in build/libs/*-all.jar ; do curl -s --user "$${AUTH_TOKEN}" --upload-file "$${file}" "https://git.data.coop/api/packages/${DRONE_REPO_OWNER}/generic/${DRONE_REPO_NAME}/${DRONE_TAG}/$(basename $file)" ; done
- for file in build/distributions/*.deb ; do curl --user "${DRONE_REPO_OWNER}:$${AUTH_TOKEN}" --upload-file "$${file}" "https://git.data.coop/api/packages/${DRONE_REPO_OWNER}/generic/${DRONE_REPO_NAME}/${DRONE_TAG}/$(basename $file)" ; done - for file in build/distributions/*.deb ; do curl -s --user "$${AUTH_TOKEN}" --upload-file "$${file}" "https://git.data.coop/api/packages/${DRONE_REPO_OWNER}/generic/${DRONE_REPO_NAME}/${DRONE_TAG}/$(basename $file)" ; done
- for file in build/distributions/*.rpm ; do curl --user "${DRONE_REPO_OWNER}:$${AUTH_TOKEN}" --upload-file "$${file}" "https://git.data.coop/api/packages/${DRONE_REPO_OWNER}/generic/${DRONE_REPO_NAME}/${DRONE_TAG}/$(basename $file)" ; done - for file in build/distributions/*.rpm ; do curl -s --user "$${AUTH_TOKEN}" --upload-file "$${file}" "https://git.data.coop/api/packages/${DRONE_REPO_OWNER}/generic/${DRONE_REPO_NAME}/${DRONE_TAG}/$(basename $file)" ; done
when: when:
event: event:
- tag - tag

View file

@ -1,3 +1,3 @@
projectId = jperf projectId = jperf
projectGroup = biz.nellemann.jperf projectGroup = biz.nellemann.jperf
projectVersion = 0.0.1 projectVersion = 0.0.2

View file

@ -15,9 +15,9 @@ import java.util.concurrent.Callable;
@Command(name = "jperf", mixinStandardHelpOptions = true, version = "0.1", @Command(name = "jperf", mixinStandardHelpOptions = true, version = "0.1",
description = "Network performance measurement tool.") description = "Network performance measurement tool.")
public class App implements Callable<Integer> { public class Application implements Callable<Integer> {
final Logger log = LoggerFactory.getLogger(App.class); final Logger log = LoggerFactory.getLogger(Application.class);
@CommandLine.Option(names = { "-c", "--connect" }, paramLabel = "SERVER", description = "run client and connect to remote server") @CommandLine.Option(names = { "-c", "--connect" }, paramLabel = "SERVER", description = "run client and connect to remote server")
@ -54,7 +54,7 @@ public class App implements Callable<Integer> {
public static void main(String... args) { public static void main(String... args) {
int exitCode = new CommandLine(new App()).execute(args); int exitCode = new CommandLine(new Application()).execute(args);
System.exit(exitCode); System.exit(exitCode);
} }

View file

@ -5,7 +5,7 @@ package biz.nellemann.jperf
import spock.lang.Specification import spock.lang.Specification
class AppTest extends Specification { class ApplicationTest extends Specification {
} }