Skip to content

Commit

Permalink
[FAB-8005] Fix CI
Browse files Browse the repository at this point in the history
Change-Id: I81bd424b4f769d4f7ce032984075971db6b4a453
Signed-off-by: Troy Ronda <troy@troyronda.com>
  • Loading branch information
troyronda authored and fqutishat committed Feb 1, 2018
1 parent 9b32b31 commit a0a9430
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions test/scripts/dependencies.sh
Expand Up @@ -16,12 +16,15 @@ GOPATH="${GOPATH:-$HOME/go}"
# Automatically install go tools (particularly for CI)
if [ "$FABRIC_SDKGO_DEPEND_INSTALL" = "true" ]; then
echo "Installing dependencies ..."
$GO_CMD get -u github.com/axw/gocov/...
$GO_CMD get -u github.com/AlekSi/gocov-xml
$GO_CMD get -u github.com/client9/misspell/cmd/misspell
$GO_CMD get -u github.com/golang/lint/golint
$GO_CMD get -u golang.org/x/tools/cmd/goimports
$GO_CMD get -u github.com/golang/mock/mockgen
TMP=`mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir'`
GOPATH=$TMP $GO_CMD get -u github.com/axw/gocov/...
GOPATH=$TMP $GO_CMD get -u github.com/AlekSi/gocov-xml
GOPATH=$TMP $GO_CMD get -u github.com/client9/misspell/cmd/misspell
GOPATH=$TMP $GO_CMD get -u github.com/golang/lint/golint
GOPATH=$TMP $GO_CMD get -u golang.org/x/tools/cmd/goimports

mkdir -p $GOPATH/bin
cp $TMP/bin/* $GOPATH/bin
fi

# Install specific version of go dep (particularly for CI)
Expand All @@ -47,6 +50,9 @@ if [ "$FABRIC_SDKGO_DEPEND_INSTALL" = "true" ] && [ -n "$GO_MOCKGEN_COMMIT" ]; t
GOPATH=$TMP go install github.com/golang/mock/mockgen
cp $TMP/bin/mockgen $GOPATH/bin

mkdir -p $GOPATH/src/github.com/golang/mock
cp -R $TMP/src/github.com/golang/mock/mockgen $GOPATH/src/github.com/golang/mock

rm -Rf $TMP
fi

Expand Down

0 comments on commit a0a9430

Please sign in to comment.