Skip to content

Commit

Permalink
pull tests from minio-go sdk based on release tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
poornas committed Aug 14, 2017
1 parent bc9783d commit 7c508d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2,579 deletions.
8 changes: 6 additions & 2 deletions build/go/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
set -e

_init() {
GO_VERSION="1.7.5"
GO_VERSION="1.8.3"
GO_INSTALL_PATH="/usr/local"
MINIO_GO_RELEASE_TAG="v3.0.1"
MINIO_GO_SRC_PATH="$GO_INSTALL_PATH/src/github.com/minio/minio-go"
MINIO_GO_PATH="/mint/run/core/minio-go"
}

Expand All @@ -31,11 +33,13 @@ installGo() {
installGoPkgs() {
go get -u github.com/minio/minio-go/...
go get -u github.com/sirupsen/logrus/...
cd $MINIO_GO_SRC_PATH
git checkout tags/"${MINIO_GO_RELEASE_TAG}"
}

# Build Minio Go tests
buildGoTests() {
CGO_ENABLED=0 go build -o "${MINIO_GO_PATH}/minio-go" "${MINIO_GO_PATH}/minio-go-tests.go"
CGO_ENABLED=0 go build -o "${MINIO_GO_PATH}/minio-go" "${MINIO_GO_SRC_PATH}/functional_tests.go"
}

# Remove Go dependencies
Expand Down
Binary file added run/core/minio-go/minio-go
Binary file not shown.
Loading

0 comments on commit 7c508d7

Please sign in to comment.