浏览代码

chore(Makefile): add test target

Mustafa Arici 5 年之前
父节点
当前提交
67c22adaa0
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Makefile

+ 4 - 1
Makefile

@@ -1,4 +1,4 @@
-.PHONY: deps build
+.PHONY: deps build test
 docker-build:
 	docker run --rm -i -t -e TRAVIS_GO_VERSION=$(TRAVIS_GO_VERSION) -e TRAVIS_BUILD_NUMBER=$(TRAVIS_BUILD_NUMBER) -e TRAVIS_TAG=$(TRAVIS_TAG) -v `pwd`:/fs/src/github.com/cad/ovpm -w /fs/src/github.com/cad/ovpm cadthecoder/ovpm-builder:latest
 docker-build-shell:
@@ -11,3 +11,6 @@ deps:
 	go get -u github.com/golang/protobuf/protoc-gen-go
 	# webui related dependencies
 	pacman -Sy npm
+
+test:
+	go test -race -coverprofile=coverage.txt -covermode=atomic .