Skip to content

Commit

Permalink
Merge branch 'feature/makefile_optimize' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
moooofly committed Jul 5, 2018
2 parents c1029c4 + 1bc2d9f commit 477af58
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 114 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ifeq "$(GOPATH)" ""
endif

GO := go
PKGS := $(shell $(GO) list ./... | grep -v vendor)
GOBUILD := CGO_ENABLED=0 $(GO) build $(BUILD_FLAG)

LDFLAGS += -X "github.com/moooofly/harbor-go-client/utils.ClientVersion=$(shell cat VERSION)"
Expand All @@ -31,7 +32,7 @@ lint:

test:
@echo "==> Testing ..."
$(GO) test ${SRC}
$(GO) test -short -race $(PKGS)

pack: build
@echo "==> Packing ..."
Expand All @@ -47,6 +48,10 @@ misspell:
# go get -u github.com/client9/misspell/cmd/misspell
find . -name '*.go' -not -path './vendor/*' -not -path './_repos/*' | xargs misspell -error

shellcheck:
# apt-get install -y shellcheck
shellcheck ./scripts/*.sh

clean:
@echo "==> Cleaning ..."
$(GO) clean -x -i ${SRC}
Expand Down
Loading

0 comments on commit 477af58

Please sign in to comment.