unlink coverage file
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
98fd1e3485
commit
fc3997f794
10
Makefile
10
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),)
|
||||
|
|
Loading…
Reference in New Issue