Less verbose build output
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
		
							
								
								
									
										14
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								Makefile
									
									
									
									
									
								
							| @@ -74,7 +74,7 @@ setup: ## install dependencies | |||||||
| 	@echo "$(WHALE) $@" | 	@echo "$(WHALE) $@" | ||||||
| 	# TODO(stevvooe): Install these from the vendor directory | 	# TODO(stevvooe): Install these from the vendor directory | ||||||
| 	@go get -u github.com/alecthomas/gometalinter | 	@go get -u github.com/alecthomas/gometalinter | ||||||
| 	@gometalinter --install | 	@gometalinter --install > /dev/null | ||||||
| 	@go get -u github.com/stevvooe/protobuild | 	@go get -u github.com/stevvooe/protobuild | ||||||
|  |  | ||||||
| generate: protos | generate: protos | ||||||
| @@ -83,7 +83,7 @@ generate: protos | |||||||
|  |  | ||||||
| protos: bin/protoc-gen-gogoctrd ## generate protobuf | protos: bin/protoc-gen-gogoctrd ## generate protobuf | ||||||
| 	@echo "$(WHALE) $@" | 	@echo "$(WHALE) $@" | ||||||
| 	@PATH=${ROOTDIR}/bin:${PATH} protobuild ${PACKAGES} | 	@PATH=${ROOTDIR}/bin:${PATH} protobuild --quiet ${PACKAGES} | ||||||
|  |  | ||||||
| check-protos: protos ## check if protobufs needs to be generated again | check-protos: protos ## check if protobufs needs to be generated again | ||||||
| 	@echo "$(WHALE) $@" | 	@echo "$(WHALE) $@" | ||||||
| @@ -114,7 +114,7 @@ endif | |||||||
|  |  | ||||||
| build: ## build the go packages | build: ## build the go packages | ||||||
| 	@echo "$(WHALE) $@" | 	@echo "$(WHALE) $@" | ||||||
| 	@go build -v ${EXTRA_FLAGS} ${GO_LDFLAGS} ${GO_GCFLAGS} ${PACKAGES} | 	@go build ${EXTRA_FLAGS} ${GO_LDFLAGS} ${GO_GCFLAGS} ${PACKAGES} | ||||||
|  |  | ||||||
| test: ## run tests, except integration tests and tests that require root | test: ## run tests, except integration tests and tests that require root | ||||||
| 	@echo "$(WHALE) $@" | 	@echo "$(WHALE) $@" | ||||||
| @@ -170,8 +170,8 @@ uninstall: | |||||||
| coverage: ## generate coverprofiles from the unit tests, except tests that require root | coverage: ## generate coverprofiles from the unit tests, except tests that require root | ||||||
| 	@echo "$(WHALE) $@" | 	@echo "$(WHALE) $@" | ||||||
| 	@rm -f coverage.txt | 	@rm -f coverage.txt | ||||||
| 	@go test -i ${TESTFLAGS} $(filter-out ${INTEGRATION_PACKAGE},${PACKAGES}) | 	@go test -i ${TESTFLAGS} $(filter-out ${INTEGRATION_PACKAGE},${PACKAGES}) 2> /dev/null | ||||||
| 	( for pkg in $(filter-out ${INTEGRATION_PACKAGE},${PACKAGES}); do \ | 	@( for pkg in $(filter-out ${INTEGRATION_PACKAGE},${PACKAGES}); do \ | ||||||
| 		go test ${TESTFLAGS} \ | 		go test ${TESTFLAGS} \ | ||||||
| 			-cover \ | 			-cover \ | ||||||
| 			-coverprofile=profile.out \ | 			-coverprofile=profile.out \ | ||||||
| @@ -184,8 +184,8 @@ coverage: ## generate coverprofiles from the unit tests, except tests that requi | |||||||
|  |  | ||||||
| root-coverage: ## generate coverage profiles for unit tests that require root | root-coverage: ## generate coverage profiles for unit tests that require root | ||||||
| 	@echo "$(WHALE) $@" | 	@echo "$(WHALE) $@" | ||||||
| 	@go test -i ${TESTFLAGS} $(filter-out ${INTEGRATION_PACKAGE},${TEST_REQUIRES_ROOT_PACKAGES}) | 	@go test -i ${TESTFLAGS} $(filter-out ${INTEGRATION_PACKAGE},${TEST_REQUIRES_ROOT_PACKAGES}) 2> /dev/null | ||||||
| 	( for pkg in $(filter-out ${INTEGRATION_PACKAGE},${TEST_REQUIRES_ROOT_PACKAGES}); do \ | 	@( for pkg in $(filter-out ${INTEGRATION_PACKAGE},${TEST_REQUIRES_ROOT_PACKAGES}); do \ | ||||||
| 		go test ${TESTFLAGS} \ | 		go test ${TESTFLAGS} \ | ||||||
| 			-cover \ | 			-cover \ | ||||||
| 			-coverprofile=profile.out \ | 			-coverprofile=profile.out \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Nephin
					Daniel Nephin