Skip to content

Commit

Permalink
Update bootstrap target
Browse files Browse the repository at this point in the history
Signed-off-by: Radu M <root@radu.sh>
  • Loading branch information
Radu M committed Feb 7, 2020
1 parent 1dd398f commit bbb8ce8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
mv $(pwd)/* $GOPATH/src/github.com/$GITHUB_REPOSITORY
cd $GOPATH/src/github.com/$GITHUB_REPOSITORY
GO111MODULE=on make build test lint
GO111MODULE=on make bootstrap build test lint
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,12 @@ GOLANGCI_VERSION := v1.16.0

.PHONY: bootstrap
bootstrap:
ifndef HAS_DEP
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
endif
ifndef HAS_GOLANGCI
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin $(GOLANGCI_VERSION)
endif
ifndef HAS_GOIMPORTS
go get -u golang.org/x/tools/cmd/goimports
endif
dep check

.PHONY: e2e
e2e:
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ steps:
displayName: 'Set up the Go workspace'

- script: |
make bootstrap build test lint
GO111MODULE=on make bootstrap build test lint
workingDirectory: '$(modulePath)'
displayName: 'Get dependencies, build, test'

0 comments on commit bbb8ce8

Please sign in to comment.