Skip to content
Permalink
Browse files
Using the dependencies from the local maven repo. (#30)
* Using the dependencies from the local maven repo.

	* First Apache Geode builds and publishes the dependencies to the local repo
	* geode-benchmark will pick up the dependencies from the local repo.

* Adding the output file to gitignore
  • Loading branch information
nabarunnag committed Dec 20, 2018
1 parent f0a8721 commit 46b2653c605b487389399d6a6293cb59c32a0633
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
@@ -2,4 +2,4 @@
out
.gradle
build/
output/
output*/
@@ -33,6 +33,7 @@ def getDate() {


repositories {
mavenLocal()
mavenCentral()
}

@@ -20,7 +20,7 @@
DATE=$(date '+%m-%d-%Y-%H-%M-%S')
TAG=${1}
BRANCH=${2:-develop}
BASELINE=${3:-"rel/v1.7.0"}
BASELINE=${3:-"rel/v1.8.0"}
BENCHMARK_BRANCH=${4:-develop}
OUTPUT=output-${DATE}-${TAG}

@@ -20,8 +20,8 @@ DATE=$(date '+%m-%d-%Y-%H-%M-%S')

TAG=${1}
BRANCH=${2:-develop}
OUTPUT=${3:-output-${DATE}-${TAG}}
BENCHMARK_BRANCH=${4:-develop}
BENCHMARK_BRANCH=${3:-develop}
OUTPUT=${4:-output-${DATE}-${TAG}}
PREFIX="geode-performance-${TAG}"

SSH_OPTIONS="-i ~/.ssh/geode-benchmarks/${TAG}.pem"
@@ -35,13 +35,17 @@ echo "HOSTS=${HOSTS}"
ssh ${SSH_OPTIONS} geode@$FIRST_INSTANCE "\
rm -rf geode-benchmarks geode && \
git clone --depth=1 https://github.com/apache/geode --branch ${BRANCH} geode && \
cd geode && \
./gradlew pTML -PversionNumber=${DATE} -PreleaseType="-BENCHMARKBUILD" && \
cd .. && \
git clone https://github.com/apache/geode-benchmarks --branch ${BENCHMARK_BRANCH} && \
cd geode-benchmarks && \
./gradlew --include-build ../geode benchmark -Phosts=${HOSTS}"
./gradlew -PgeodeVersion=${DATE}-BENCHMARKBUILD benchmark -Phosts=${HOSTS}"


mkdir -p ${OUTPUT}

scp ${SSH_OPTIONS} -r geode@${FIRST_INSTANCE}:geode-benchmarks/geode-benchmarks/build/reports ${OUTPUT}/reports
BENCHMARK_DIRECTORY="$(ssh ${SSH_OPTIONS} geode@${FIRST_INSTANCE} ls -l geode-benchmarks/geode-benchmarks/build/ | grep benchmark | awk 'NF>1{print $NF}')"
scp ${SSH_OPTIONS} -r geode@${FIRST_INSTANCE}:geode-benchmarks/geode-benchmarks/build/${BENCHMARK_DIRECTORY} ${OUTPUT}

scp ${SSH_OPTIONS} -r geode@${FIRST_INSTANCE}:geode-benchmarks/geode-benchmarks/build/benchmarks ${OUTPUT}
@@ -20,7 +20,7 @@
DATE=$(date '+%m-%d-%Y-%H-%M-%S')
TAG=${1}
BRANCH=${2:-develop}
BASELINE=${3:-"rel/v1.7.0"}
BASELINE=${3:-"rel/v1.8.0"}
BENCHMARK_BRANCH=${4:-develop}
OUTPUT=output-${DATE}-${TAG}

@@ -34,9 +34,12 @@ FIRST_INSTANCE=$(echo ${INSTANCES} | awk '{print $1}' )
gcloud compute ssh geode@$FIRST_INSTANCE --command="\
rm -rf geode-benchmarks geode && \
git clone --depth=1 https://github.com/apache/geode --branch ${BRANCH} geode && \
cd geode && \
./gradlew pTML -PversionNumber=${DATE} -PreleaseType="-BENCHMARKBUILD" && \
cd .. && \
git clone https://github.com/apache/geode-benchmarks --branch ${BENCHMARK_BRANCH} && \
cd geode-benchmarks && \
./gradlew --include-build ../geode benchmark -Phosts=${HOSTS}"
./gradlew -PgeodeVersion=${DATE}-BENCHMARKBUILD benchmark -Phosts=${HOSTS}"


mkdir -p ${OUTPUT}

0 comments on commit 46b2653

Please sign in to comment.