Skip to content

Commit

Permalink
Add integration test hooks back in
Browse files Browse the repository at this point in the history
  • Loading branch information
djmb committed Aug 23, 2023
1 parent cfe7793 commit d0fbf53
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/integration/docker/deployer/app/.kamal/hooks/post-deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
echo "Deployed!"
mkdir -p /tmp/${TEST_ID} && touch /tmp/${TEST_ID}/post-deploy
3 changes: 3 additions & 0 deletions test/integration/docker/deployer/app/.kamal/hooks/pre-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
echo "About to build and push..."
mkdir -p /tmp/${TEST_ID} && touch /tmp/${TEST_ID}/pre-build
8 changes: 8 additions & 0 deletions test/integration/docker/deployer/app/.kamal/hooks/pre-connect
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

echo "About to lock..."
if [ "$KAMAL_HOSTS" != "vm1,vm2" ]; then
echo "Expected hosts to be 'vm1,vm2', got $KAMAL_HOSTS"
exit 1
fi
mkdir -p /tmp/${TEST_ID} && touch /tmp/${TEST_ID}/pre-connect
3 changes: 3 additions & 0 deletions test/integration/docker/deployer/app/.kamal/hooks/pre-deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
echo "Deployed!"
mkdir -p /tmp/${TEST_ID} && touch /tmp/${TEST_ID}/pre-deploy

0 comments on commit d0fbf53

Please sign in to comment.