Skip to content

Commit

Permalink
Test tentacle separately, with soft failure for now (#75)
Browse files Browse the repository at this point in the history
Because the primary purpose of this script is to test Octopus CLI, we can test that separately, and first.

The quick tentacle smoke test is a secondary thing that is currently not supported yet on ubuntu focal, so this change also makes that a soft failure for now. I think it's still useful to leave in the process for diagnostic reasons.
  • Loading branch information
thedewi authored May 19, 2020
1 parent c2c98b4 commit 240366c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions BuildAssets/repos/test-apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ set +o pipefail
echo "deb $ORIGIN/ $DIST main" > /etc/apt/sources.list.d/octopus.com.list || exit
apt-get update --quiet 2 || exit

echo "## Installing tentacle, octopuscli"
apt-get install --no-install-recommends --yes tentacle octopuscli >/dev/null || exit

echo "## Testing Tentacle"
/opt/octopus/tentacle/Tentacle version || exit
echo
echo "## Installing octopuscli"
apt-get install --no-install-recommends --yes octopuscli >/dev/null || exit
echo "## Testing Octopus CLI"
octo version || exit
OCTO_RESULT="$(octo list-environments --space="$OCTOPUS_SPACE")" || { echo "$OCTO_RESULT"; exit 1; }
echo "$OCTO_RESULT" | grep "$OCTOPUS_EXPECT_ENV" || { echo "Expected environment not found: $OCTOPUS_EXPECT_ENV." >&2; exit 1; }

echo "## Installing and testing tentacle (for diagnostic purposes, failing softly for now)"
apt-get install --no-install-recommends --yes tentacle >/dev/null
/opt/octopus/tentacle/Tentacle version
echo

0 comments on commit 240366c

Please sign in to comment.