Skip to content

Commit

Permalink
pull tests from minio-go sdk based on release tag. (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
poornas authored and deekoder committed Aug 15, 2017
1 parent feb97f6 commit 6e7657b
Show file tree
Hide file tree
Showing 2 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
Loading

0 comments on commit 6e7657b

Please sign in to comment.