-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
Makefile
36 lines (25 loc) · 809 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
build:
CGO_CFLAGS_ALLOW=-Xpreprocessor go build -o bin/imagor ./cmd/imagor/main.go
test:
go clean -testcache && CGO_CFLAGS_ALLOW=-Xpreprocessor go test -coverprofile=profile.cov $(shell go list ./... | grep -v /examples/ | grep -v /cmd/)
dev: build
./bin/imagor -debug -imagor-unsafe
help: build
./bin/imagor -h
get:
go get -v -t -d ./...
docker-dev-build:
docker build -t imagor:dev .
docker-dev-run:
touch .env
docker run --rm -p 8000:8000 --env-file .env imagor:dev -debug -imagor-unsafe
docker-dev: docker-dev-build docker-dev-run
%-tag: VERSION:=$(if $(VERSION),$(VERSION),$$(./bin/imagor -version))
git-tag:
git tag "v$(VERSION)"
git push origin "refs/tags/v$(VERSION)"
reset-golden:
git rm -rf testdata/golden
git commit -m "test: reset golden"
git push
release: build git-tag