-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Buildkite pipeline for acceptance tests (#741)
* Acceptance test buildkite job Porting the acceptance job to Buildkite. I moved all the logic of the Makefile into a more Buildkite way of handling secrets (via pre-command) to benefit from secrets redaction. * Disable failing test during migration * Disable failing test during migration This reverts commit 4211c0e. * Disable failing test during migration * Re-enabled disabled tests * Update Buildkite teams perms section * Use more generic go version
- Loading branch information
Showing
5 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
echo "--- Download dependencies" | ||
make vendor | ||
|
||
echo "--- Run acceptance tests" | ||
EC_API_KEY=$TERRAFORM_PROVIDER_API_KEY_SECRET make testacc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
if [[ "$BUILDKITE_STEP_KEY" == "acceptance-tests" ]]; then | ||
echo "--- Sweeps any deployments older than 1h." | ||
EC_API_KEY=$TERRAFORM_PROVIDER_API_KEY_SECRET SWEEPARGS=-sweep-run=ec_deployments make sweep | ||
rm -rf reports bin | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
steps: | ||
- label: ":wave: Greetings" | ||
command: "echo 'My first pipeline!'" | ||
- label: ":test_tube: Acceptance tests" | ||
command: .buildkite/acceptance.sh | ||
agents: | ||
image: "docker.io/library/golang:1.21" | ||
cpu: "8" | ||
memory: "4G" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters