Skip to content

Commit

Permalink
5
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Sep 8, 2024
1 parent 2e67782 commit cf51e65
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .vortex/tests/bats/deployment0.bats
Original file line number Diff line number Diff line change
Expand Up @@ -39,48 +39,48 @@ load _helper.deployment.bash
substep "Using provided SRC_DIR ${SRC_DIR}"
assert_dir_not_empty "${SRC_DIR}"
fi
#
# # Make sure that all files were copied out from the container or passed from
# # the previous stage of the build.
#
# assert_files_present_common "${CURRENT_PROJECT_DIR}"
# assert_files_present_deployment "${CURRENT_PROJECT_DIR}"
# assert_files_present_no_integration_acquia "${CURRENT_PROJECT_DIR}"
# assert_files_present_no_integration_lagoon "${CURRENT_PROJECT_DIR}"
# assert_files_present_no_integration_ftp "${CURRENT_PROJECT_DIR}"
# assert_git_repo "${SRC_DIR}"
#
# # Make sure that one of the excluded directories will be ignored in the
# # deployment artifact.
# mkdir -p "${SRC_DIR}"/web/themes/custom/star_wars/node_modules
# touch "${SRC_DIR}"/web/themes/custom/star_wars/node_modules/test.txt
#
# substep "Preparing remote repo directory ${REMOTE_REPO_DIR}."
# fixture_prepare_dir "${REMOTE_REPO_DIR}"
# git_init 1 "${REMOTE_REPO_DIR}"
#
# popd >/dev/null
#
# pushd "${CURRENT_PROJECT_DIR}" >/dev/null
#
# substep "Running deployment."
# # This deployment uses all 3 types.
# export VORTEX_DEPLOY_TYPES="artifact,webhook,container_registry"
#
# # Variables for ARTIFACT deployment.
# export VORTEX_DEPLOY_ARTIFACT_GIT_REMOTE="${REMOTE_REPO_DIR}"/.git
# export VORTEX_DEPLOY_ARTIFACT_ROOT="${CURRENT_PROJECT_DIR}"
# export VORTEX_DEPLOY_ARTIFACT_SRC="${SRC_DIR}"
# export VORTEX_DEPLOY_ARTIFACT_GIT_USER_EMAIL="${VORTEX_DEPLOY_ARTIFACT_GIT_USER_EMAIL:[email protected]}"
#
# # Variables for WEBHOOK deployment.
# export VORTEX_DEPLOY_WEBHOOK_URL=http://example.com
# export VORTEX_DEPLOY_WEBHOOK_RESPONSE_STATUS=200
#
# # Variables for container registry deployment.
# # @todo: Not implemented. Add here when implemented.
#
# # Run deployment.

# Make sure that all files were copied out from the container or passed from
# the previous stage of the build.

assert_files_present_common "${CURRENT_PROJECT_DIR}"
assert_files_present_deployment "${CURRENT_PROJECT_DIR}"
assert_files_present_no_integration_acquia "${CURRENT_PROJECT_DIR}"
assert_files_present_no_integration_lagoon "${CURRENT_PROJECT_DIR}"
assert_files_present_no_integration_ftp "${CURRENT_PROJECT_DIR}"
assert_git_repo "${SRC_DIR}"

# Make sure that one of the excluded directories will be ignored in the
# deployment artifact.
mkdir -p "${SRC_DIR}"/web/themes/custom/star_wars/node_modules
touch "${SRC_DIR}"/web/themes/custom/star_wars/node_modules/test.txt

substep "Preparing remote repo directory ${REMOTE_REPO_DIR}."
fixture_prepare_dir "${REMOTE_REPO_DIR}"
git_init 1 "${REMOTE_REPO_DIR}"

popd >/dev/null

pushd "${CURRENT_PROJECT_DIR}" >/dev/null

substep "Running deployment."
# This deployment uses all 3 types.
export VORTEX_DEPLOY_TYPES="artifact,webhook,container_registry"

# Variables for ARTIFACT deployment.
export VORTEX_DEPLOY_ARTIFACT_GIT_REMOTE="${REMOTE_REPO_DIR}"/.git
export VORTEX_DEPLOY_ARTIFACT_ROOT="${CURRENT_PROJECT_DIR}"
export VORTEX_DEPLOY_ARTIFACT_SRC="${SRC_DIR}"
export VORTEX_DEPLOY_ARTIFACT_GIT_USER_EMAIL="${VORTEX_DEPLOY_ARTIFACT_GIT_USER_EMAIL:-testuser@example.com}"

# Variables for WEBHOOK deployment.
export VORTEX_DEPLOY_WEBHOOK_URL=http://example.com
export VORTEX_DEPLOY_WEBHOOK_RESPONSE_STATUS=200

# Variables for container registry deployment.
# @todo: Not implemented. Add here when implemented.

# Run deployment.
# run ahoy deploy
# assert_success
#
Expand Down

1 comment on commit cf51e65

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.