Skip to content

Commit

Permalink
Fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Molina committed Jan 24, 2017
1 parent ac516ae commit bcf1a4c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Makefile
Expand Up @@ -4,15 +4,11 @@ COVERAGE_MODE := atomic

test:
@echo "mode: $(COVERAGE_MODE)" > $(COVERAGE_REPORT); \
go test . -coverprofile=$(COVERAGE_PROFILE) -covermode=${COVERAGE_MODE); \
if [ $$? != 0 ]; then \
exit 2; \
fi; \
if [ -f $(COVERAGE_PROFILE) ]; then \
tail -n +2 $(COVERAGE_PROFILE) >> $(COVERAGE_REPORT); \
rm $(COVERAGE_PROFILE); \
fi; \
for dir in `find ./generator -name "*.go" | grep -o '.*/' | sort -u`; do \
for dir in `find . -name "*.go" | grep -o '.*/' | sort -u`; do \
go test $$dir -coverprofile=$(COVERAGE_PROFILE) -covermode=$(COVERAGE_MODE); \
if [ $$? != 0 ]; then \
exit 2; \
Expand Down

0 comments on commit bcf1a4c

Please sign in to comment.