Skip to content

Commit

Permalink
Restore makefile so test_server does not depend on build_server
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Oct 20, 2024
1 parent 3689d8f commit 41810fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions sh/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ check_args()
show_help
exit 0
;;
'server')
if [ -n "${CI:-}" ] ; then
stderr "In CI workflow - use docker/build-push-action@v6 GitHub Action"
exit 42
fi
;;
'client')
'server' | 'client')
;;
'')
show_help
Expand All @@ -52,7 +46,14 @@ check_args()
build_image()
{
check_args "$@"

if [ -n "${CI:-}" ] ; then
stderr "In CI workflow - using previous docker/build-push-action@v6 GitHub Action"
exit 42
fi

local -r TYPE="${1}"

exit_non_zero_unless_installed docker
export $(echo_versioner_env_vars)
containers_down
Expand Down
2 changes: 1 addition & 1 deletion sh/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ run_tests()
exit_non_zero_unless_installed docker
export SERVICE_NAME="${1}"
# Don't do a build here, because in CI workflow, server image is built with GitHub Action
docker compose up --no-build --wait "${SERVICE_NAME}"
docker compose up --no-build --wait --wait-timeout=10 "${SERVICE_NAME}"
exit_non_zero_unless_started_cleanly
copy_in_saver_test_data

Expand Down

0 comments on commit 41810fc

Please sign in to comment.