Build improvements.
This commit is contained in:
parent
1ee63f7752
commit
38edd74f8d
12
.drone.yml
12
.drone.yml
|
@ -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
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
projectId = jperf
|
projectId = jperf
|
||||||
projectGroup = biz.nellemann.jperf
|
projectGroup = biz.nellemann.jperf
|
||||||
projectVersion = 0.0.1
|
projectVersion = 0.0.2
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ package biz.nellemann.jperf
|
||||||
|
|
||||||
import spock.lang.Specification
|
import spock.lang.Specification
|
||||||
|
|
||||||
class AppTest extends Specification {
|
class ApplicationTest extends Specification {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue