Skip to content

Commit

Permalink
Use $BUILD_JAVA_HOME to control JVMs used with acceptance tests (elas…
Browse files Browse the repository at this point in the history
…tic#13471)

* Use $BUILD_JAVA_HOME to control JVM builds on acceptance tests and docker acceptance tests
  • Loading branch information
robbavey authored Dec 6, 2021
1 parent 8d3127e commit 0cba1e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/acceptance_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export JRUBY_OPTS="-J-Xmx1g"
export GRADLE_OPTS="-Xmx4g -Dorg.gradle.daemon=false -Dorg.gradle.logging.level=info -Dfile.encoding=UTF-8"
export OSS=true

if [ -n "$BUILD_JAVA_HOME" ]; then
GRADLE_OPTS="$GRADLE_OPTS -Dorg.gradle.java.home=$BUILD_JAVA_HOME"
fi


SELECTED_TEST_SUITE=$1

# The acceptance test in our CI infrastructure doesn't clear the workspace between run
Expand Down
4 changes: 4 additions & 0 deletions ci/docker_acceptance_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ set -x
export JRUBY_OPTS="-J-Xmx1g"
export GRADLE_OPTS="-Xmx4g -Dorg.gradle.daemon=false -Dorg.gradle.logging.level=info -Dfile.encoding=UTF-8"

if [ -n "$BUILD_JAVA_HOME" ]; then
GRADLE_OPTS="$GRADLE_OPTS -Dorg.gradle.java.home=$BUILD_JAVA_HOME"
fi

# Can run either a specific flavor, or all flavors -
# eg `ci/acceptance_tests.sh oss` will run tests for open source container
# `ci/acceptance_tests.sh full` will run tests for the default container
Expand Down

0 comments on commit 0cba1e5

Please sign in to comment.