Skip to content
Snippets Groups Projects
Commit 313cd991 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add memory

parent e79bf3c1
No related branches found
No related tags found
2 merge requests!755Production Release | nshmp-haz,!754NSHM Unit tests
......@@ -239,6 +239,9 @@ NSHM Tests:
- CMD: testConus2023
- CMD: testHawaii2021
script:
- memory="$(free -g | awk '/^Mem:/{print $2}')";
- export CI_RUNNER_MEMORY="$(printf "%.f" "$(echo "${memory} * 0.90" | bc)")g";
- echo "${CI_RUNNER_MEMORY}"
- ./gradlew ${CMD}
- cat ${JACOCO_HTML_DIR}/index.html
stage: test
......
......@@ -13,6 +13,8 @@ import org.yaml.snakeyaml.Yaml
ext {
nshmDir = "nshms";
envMemory = System.getenv("CI_RUNNER_MEMORY")
def xmx = envMemory ? envMemory : "16g"
// Download and unzip NSHM
downloadNshm = {nshm ->
......@@ -92,7 +94,7 @@ task testAlaska2007(type: Test) {
useJUnitPlatform()
jvmArgs(
"-Xms2g",
"-Xmx8g",
"-Xmx${xmx}",
)
filter {
......@@ -116,7 +118,7 @@ task testAlaska2023(type: Test) {
useJUnitPlatform()
jvmArgs(
"-Xms2g",
"-Xmx8g",
"-Xmx${xmx}",
)
filter {
......@@ -140,7 +142,7 @@ task testConus2018(type: Test) {
useJUnitPlatform()
jvmArgs(
"-Xms2g",
"-Xmx8g",
"-Xmx${xmx}",
)
filter {
......@@ -164,7 +166,7 @@ task testConus2023(type: Test) {
useJUnitPlatform()
jvmArgs(
"-Xms2g",
"-Xmx16g",
"-Xmx${xmx}",
)
filter {
......@@ -188,7 +190,7 @@ task testHawaii2021(type: Test) {
useJUnitPlatform()
jvmArgs(
"-Xms2g",
"-Xmx8g",
"-Xmx${xmx}",
)
filter {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment