Skip to content

Commit

Permalink
Install ginkgo (#248)
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Ding <[email protected]>
Co-authored-by: Jack Ding <[email protected]>
  • Loading branch information
openshift-cherrypick-robot and jzding authored Apr 26, 2023
1 parent 4c1b5fc commit 414390a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ sub.json
build/
bin/

pkg/storage/kubernetes/*.json

16 changes: 6 additions & 10 deletions hack/run-functests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 414390a

Please sign in to comment.