-
Notifications
You must be signed in to change notification settings - Fork 17
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: Jack Ding <[email protected]> Co-authored-by: Jack Ding <[email protected]>
- Loading branch information
1 parent
4c1b5fc
commit 414390a
Showing
2 changed files
with
7 additions
and
10 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 |
---|---|---|
|
@@ -26,4 +26,5 @@ sub.json | |
build/ | ||
bin/ | ||
|
||
pkg/storage/kubernetes/*.json | ||
|
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 |
---|---|---|
|
@@ -2,20 +2,16 @@ | |
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 get github.com/onsi/ginkgo/[email protected] | ||
rm -rf $GINKGO_TMP_DIR | ||
echo "Downloading ginkgo tool" | ||
cd - | ||
echo "Downloading ginkgo tool" | ||
go install -mod=mod github.com/onsi/ginkgo/[email protected] | ||
fi | ||
|
||
GOPATH="${GOPATH:-~/go}" | ||
JUNIT_OUTPUT="${JUNIT_OUTPUT:-/tmp/artifacts/unit_report.xml}" | ||
export PATH=$PATH:$GOPATH/bin | ||
|
||
# silence deprecations | ||
export ACK_GINKGO_DEPRECATIONS=1.16.5 | ||
# silence Ginkgo 2.0 notice | ||
export ACK_GINKGO_RC=true | ||
GOFLAGS=-mod=vendor ginkgo "$SUITE" -- -junit $JUNIT_OUTPUT |