Skip to content

Commit

Permalink
simplify script
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeltzun committed Nov 17, 2023
1 parent d459d92 commit 672a6c1
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions scripts/ci_build_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,15 @@ dargs+=(--name=${CONTAINER_NAME})
dargs+=(--volume=${BUILD_DIR}:${BUILD_DIR_MOUNT_POINT})
dargs+=(--cap-add=ALL)

if [ ${CMAKE_BUILD_TYPE} == 'Debug' ]; then
dargs+=(--memory-swap='-1')
fi
dargs+=(-e HOST_CONFIG=${HOST_CONFIG:-host-configs/environment.cmake})
dargs+=(-e GEOSX_DIR=${GEOSX_DIR})
dargs+=(-e ENABLE_HYPRE=${ENABLE_HYPRE:-OFF})
dargs+=(-e ENABLE_HYPRE_DEVICE=${ENABLE_HYPRE_DEVICE:-CPU})
dargs+=(-e ENABLE_TRILINOS=${ENABLE_TRILINOS:-ON})
dargs+=(-e CMAKE_BUILD_TYPE)

# Now we can build GEOSX.
docker run "${dargs[@]}" \
-e HOST_CONFIG=${HOST_CONFIG:-host-configs/environment.cmake} \
-e CMAKE_BUILD_TYPE \
-e GEOSX_DIR=${GEOSX_DIR} \
-e ENABLE_HYPRE=${ENABLE_HYPRE:-OFF} \
-e ENABLE_HYPRE_DEVICE=${ENABLE_HYPRE_DEVICE:-CPU} \
-e ENABLE_TRILINOS=${ENABLE_TRILINOS:-ON} \
${DOCKER_REPOSITORY}:${GEOSX_TPL_TAG} \
${BUILD_DIR_MOUNT_POINT}/scripts/ci_build_and_test_in_container.sh ${BUILD_AND_TEST_ARGS} ${SCCACHE_CLI};
${DOCKER_REPOSITORY}:${GEOSX_TPL_TAG} \
${BUILD_DIR_MOUNT_POINT}/scripts/ci_build_and_test_in_container.sh \
${BUILD_AND_TEST_ARGS} ${SCCACHE_CLI};

0 comments on commit 672a6c1

Please sign in to comment.