Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing Infra AND Circle CI Integration (#29)
Signed-off-by: Ken Sipe <kensipe@gmail.com>
- Loading branch information
Showing
15 changed files
with
277 additions
and
141 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,51 @@ | ||
# Golang CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-go/ for more details | ||
version: 2.1 | ||
jobs: | ||
integration-test: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: echo 'export INTEGRATION_OUTPUT_JUNIT="true"' >> $BASH_ENV | ||
- run: ./test/run_tests.sh integration-test | ||
- store_test_results: | ||
path: reports/ | ||
|
||
e2e-test: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: echo 'export INTEGRATION_OUTPUT_JUNIT="true"' >> $BASH_ENV | ||
- run: ./test/run_tests.sh e2e-test | ||
- store_test_results: | ||
path: reports/ | ||
- store_artifacts: | ||
path: kind-logs.tar.bz2 | ||
|
||
lint: | ||
docker: | ||
- image: kudobuilder/golang:1.13 | ||
working_directory: /go/src/github.com/kudobuilder/kuttl | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- go-mod-v1-{{ checksum "go.sum" }} | ||
- run: make lint | ||
- save_cache: | ||
key: go-mod-v1-{{ checksum "go.sum" }} | ||
paths: | ||
- "/go/pkg/mod" | ||
- "/go/bin" | ||
workflows: | ||
version: 2 | ||
lint: | ||
jobs: | ||
- lint | ||
integration-test: | ||
jobs: | ||
- integration-test | ||
e2e-test: | ||
jobs: | ||
- e2e-test |
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
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
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,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
set -o xtrace | ||
|
||
INTEGRATION_OUTPUT_JUNIT=${INTEGRATION_OUTPUT_JUNIT:-false} | ||
VERSION=${VERSION:-test} | ||
|
||
if [ "$INTEGRATION_OUTPUT_JUNIT" == true ] | ||
then | ||
echo "Running E2E tests with junit output" | ||
mkdir -p reports/ | ||
go get github.com/jstemmer/go-junit-report | ||
|
||
./bin/kubectl-kuttl test pkg/test/test_data/ 2>&1 \ | ||
| tee /dev/fd/2 \ | ||
| go-junit-report -set-exit-code \ | ||
> reports/kuttl_e2e_test_report.xml | ||
|
||
else | ||
echo "Running E2E tests without junit output" | ||
|
||
./bin/kubectl-kuttl test pkg/test/test_data/ | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.