2021-07-25 20:55:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
ARTIFACT_ID=ulid-creator
|
|
|
|
|
|
|
|
# find the script folder
|
2021-10-02 12:31:19 +00:00
|
|
|
SCRIPT_DIR=$(dirname "$0")
|
2021-07-25 20:55:29 +00:00
|
|
|
|
|
|
|
# go to the parent folder
|
2021-10-02 12:31:19 +00:00
|
|
|
cd "${SCRIPT_DIR}/.."
|
2021-07-25 20:55:29 +00:00
|
|
|
|
|
|
|
# compile the parent project
|
|
|
|
mvn clean install
|
|
|
|
|
2021-10-02 12:31:19 +00:00
|
|
|
# create a copy with the expected name
|
|
|
|
cp "${PWD}/target/${ARTIFACT_ID}"-*-SNAPSHOT.jar "${PWD}/target/${ARTIFACT_ID}"-0.0.1-BENCHMARK.jar
|
2021-07-25 20:55:29 +00:00
|
|
|
|
|
|
|
# go to the benchmark folder
|
|
|
|
cd benchmark
|
|
|
|
|
|
|
|
# compile the benchmark project
|
|
|
|
mvn validate
|
|
|
|
mvn clean install
|
|
|
|
|
|
|
|
# run the benchmark
|
|
|
|
# /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar target/benchmarks.jar
|
|
|
|
java -jar target/benchmarks.jar
|
|
|
|
|