unlink coverage file

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-05-13 14:54:35 +08:00
parent 98fd1e3485
commit fc3997f794
1 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ BUILD_IMAGE := "gorush-build"
PRODUCTION_IMAGE := "gorush"
DEPLOY_ACCOUNT := "appleboy"
VERSION := $(shell git describe --tags)
PROJECT := $(shell date '+%Y%m%d%H%M%S%s')
RANDOM := $(shell date '+%Y%m%d%H%M%S%s')
all: build
@ -28,7 +28,7 @@ config_test:
go test -v -cover -covermode=count -coverprofile=coverage.out ./config/...
html:
go tool cover -html=coverage.out
go tool cover -html=coverage.out && unlink coverage.out
docker_build: clean
tar -zcvf build.tar.gz gorush.go gorush config storage Makefile glide.lock glide.yaml
@ -38,9 +38,9 @@ docker_build: clean
docker build --rm -t $(PRODUCTION_IMAGE) -f docker/Dockerfile.dist .
docker_test:
docker-compose -p ${PROJECT} -f docker/docker-compose.testing.yml build --no-cache gorush
docker-compose -p ${PROJECT} -f docker/docker-compose.testing.yml run --rm gorush
docker-compose -p ${PROJECT} -f docker/docker-compose.testing.yml down
docker-compose -p ${RANDOM} -f docker/docker-compose.testing.yml build --no-cache gorush
docker-compose -p ${RANDOM} -f docker/docker-compose.testing.yml run --rm gorush
docker-compose -p ${RANDOM} -f docker/docker-compose.testing.yml down
deploy:
ifeq ($(tag),)