From fc3997f79499c5028188f4cad5b8fdd369dc4d36 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 13 May 2016 14:54:35 +0800 Subject: [PATCH] unlink coverage file Signed-off-by: Bo-Yi Wu --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 9cfcecc..4675fd3 100644 --- a/Makefile +++ b/Makefile @@ -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),)