diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e8d3faf9426d34f76178f5e3b7a350967a7ac485..467daa0f0866c09c966bf9aac97b0580ad756ca7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -208,7 +208,6 @@ Container Registry: Build Project: script: - - cat /proc/meminfo - ./gradlew assemble stage: build @@ -240,9 +239,7 @@ NSHM Tests: - CMD: testConus2023 - CMD: testHawaii2021 script: - - yum install procps -y - - memory="$(free -g | awk '/^Mem:/{print $2}')"; - - export CI_RUNNER_MEMORY="$(printf "%.f" "$(echo "${memory} * 0.90" | bc)")g"; + - export CI_RUNNER_MEMORY="$(awk '/MemTotal/ {printf( "%d\n", $2 / 1024 / 1024 * .90 )}' /proc/meminfo)" - echo "${CI_RUNNER_MEMORY}" - ./gradlew ${CMD} - cat ${JACOCO_HTML_DIR}/index.html