Skip to content

Commit

Permalink
Build packages from files
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri Shkuro committed Sep 21, 2017
1 parent 170ee04 commit 4453bac
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
PROJECT_ROOT=github.com/uber/jaeger

# all .go files that don't exist in hidden directories
ALL_SRC := $(shell find . -name "*.go" -path "*$(PKG)*" | grep -v -e Godeps -e vendor -e go-build \
-e ".*/\..*" \
-e ".*/_.*" \
-e ".*/testdata/.*" \
-e ".*/mocks.*")

ALL_PKGS := $(shell go list $(sort $(dir $(ALL_SRC))))

PACKAGES := $(shell glide novendor | grep -v ./thrift-gen/... | grep -v ./examples/...)

# all .go files that don't exist in hidden directories
Expand Down Expand Up @@ -173,8 +183,8 @@ install_ci: install install_examples
.PHONY: test_ci
test_ci: build_examples
@echo pre-compiling tests
@time go test -i $(shell glide novendor)
@./scripts/cover.sh $(shell go list $(PACKAGES))
@time go test -i $(ALL_PKGS)
@./scripts/cover.sh $(ALL_PKGS)
make lint

# TODO at the moment we're not generating tchan_*.go files
Expand Down

0 comments on commit 4453bac

Please sign in to comment.