Skip to content

Commit

Permalink
41
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Sep 8, 2024
1 parent cf51e65 commit 520ca91
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .vortex/tests/bats/deployment0.bats
Original file line number Diff line number Diff line change
Expand Up @@ -50,37 +50,37 @@ load _helper.deployment.bash
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.
# # 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.
# run ahoy deploy
# assert_success
#
Expand Down

1 comment on commit 520ca91

@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.