-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tobias Giese <[email protected]> Co-authored-by: Andrea Panattoni <[email protected]>
- Loading branch information
1 parent
1b01d28
commit e7731d6
Showing
2 changed files
with
8 additions
and
17 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
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,21 +1,10 @@ | ||
#!/bin/bash | ||
set -x | ||
which ginkgo | ||
if [ $? -ne 0 ]; then | ||
# we are moving to a temp folder as in go.mod we have a dependency that is not | ||
# resolved if we are not using google's GOPROXY. That is not the case when building as | ||
# we are using vendored dependencies | ||
GINKGO_TMP_DIR=$(mktemp -d) | ||
cd $GINKGO_TMP_DIR | ||
go mod init tmp | ||
go install -mod=readonly github.com/onsi/ginkgo/v2/[email protected] | ||
rm -rf $GINKGO_TMP_DIR | ||
echo "Downloading ginkgo tool" | ||
cd - | ||
fi | ||
|
||
here="$(dirname "$(readlink --canonicalize "${BASH_SOURCE[0]}")")" | ||
root="$(readlink --canonicalize "$here/..")" | ||
|
||
GOPATH="${GOPATH:-~/go}" | ||
JUNIT_OUTPUT="${JUNIT_OUTPUT:-/tmp/artifacts}" | ||
export PATH=$PATH:$GOPATH/bin | ||
|
||
ginkgo -output-dir=$JUNIT_OUTPUT --junit-report "unit_report.xml" -v "$SUITE" -- -report=$JUNIT_OUTPUT | ||
${root}/bin/ginkgo -output-dir=$JUNIT_OUTPUT --junit-report "unit_report.xml" -v "$SUITE" -- -report=$JUNIT_OUTPUT |