mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
added makefile section comments
This commit is contained in:
parent
63640b24b2
commit
0827eb9b4a
11
Makefile
11
Makefile
@ -3,6 +3,8 @@ SHELL := /bin/bash
|
|||||||
TAG?=latest
|
TAG?=latest
|
||||||
IMAGE=docker-registry.bestbytes.net/contentserver
|
IMAGE=docker-registry.bestbytes.net/contentserver
|
||||||
|
|
||||||
|
# Utils
|
||||||
|
|
||||||
all: build test
|
all: build test
|
||||||
tag:
|
tag:
|
||||||
echo $(TAG)
|
echo $(TAG)
|
||||||
@ -10,6 +12,9 @@ dep:
|
|||||||
go mod download && go mod vendor && go install -i ./vendor/...
|
go mod download && go mod vendor && go install -i ./vendor/...
|
||||||
clean:
|
clean:
|
||||||
rm -fv bin/contentserve*
|
rm -fv bin/contentserve*
|
||||||
|
|
||||||
|
# Build
|
||||||
|
|
||||||
build: clean
|
build: clean
|
||||||
go build -o bin/contentserver
|
go build -o bin/contentserver
|
||||||
build-arch: clean
|
build-arch: clean
|
||||||
@ -25,7 +30,7 @@ build-docker: clean build-arch
|
|||||||
package: build
|
package: build
|
||||||
pkg/build.sh
|
pkg/build.sh
|
||||||
|
|
||||||
# docker
|
# Docker
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
docker build -t $(IMAGE):$(TAG) .
|
docker build -t $(IMAGE):$(TAG) .
|
||||||
@ -33,7 +38,7 @@ docker-build:
|
|||||||
docker-push:
|
docker-push:
|
||||||
docker push $(IMAGE):$(TAG)
|
docker push $(IMAGE):$(TAG)
|
||||||
|
|
||||||
# testing / benchmarks
|
# Testing / benchmarks
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test ./...
|
go test ./...
|
||||||
@ -41,7 +46,7 @@ test:
|
|||||||
bench:
|
bench:
|
||||||
go test -run=none -bench=. ./...
|
go test -run=none -bench=. ./...
|
||||||
|
|
||||||
# profiling
|
# Profiling
|
||||||
|
|
||||||
test-cpu-profile:
|
test-cpu-profile:
|
||||||
go test -cpuprofile=cprof-client github.com/foomo/contentserver/client
|
go test -cpuprofile=cprof-client github.com/foomo/contentserver/client
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user