github.com/lelandbatey/lab@v0.12.1-0.20180712064405-55bfd303a5f0/Makefile (about)

     1  install:
     2  	dep ensure
     3  	go install -ldflags "-X \"main.version=$$(git  rev-parse --short=10 HEAD)\""  github.com/zaquestion/lab
     4  
     5  test:
     6  	bash -c "trap 'trap - SIGINT SIGTERM ERR; mv testdata/.git testdata/test.git; rm coverage-* 2>&1 > /dev/null; exit 1' SIGINT SIGTERM ERR; $(MAKE) internal-test"
     7  
     8  internal-test:
     9  	rm coverage-* 2>&1 > /dev/null || true
    10  	mv testdata/test.git testdata/.git
    11  	go test -coverprofile=coverage-main.out -covermode=count -coverpkg ./... -run=$(run) github.com/zaquestion/lab/cmd github.com/zaquestion/lab/internal/...
    12  	mv testdata/.git testdata/test.git
    13  	go get github.com/wadey/gocovmerge
    14  	gocovmerge coverage-*.out > coverage.txt && rm coverage-*.out
    15  
    16  .PHONY: install test internal-test