-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (28 loc) · 827 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
build:
$(MAKE) -C app build
build-cross-platform:
$(MAKE) -C app bin-cross-platform
clean:
$(MAKE) -C app clean
if [ -f coverage.html ] ; then rm coverage.html ; fi
if [ -d .cover ] ; then rm -rf .cover ; fi
docker-compose down --rmi all -v 2>/dev/null || true
docker-compose stop >/dev/null
docker-compose rm >/dev/null
rebuild:
docker-compose build techno-sso
docker-compose build unit
unit:
docker-compose run --rm unit
update-go-deps:
@echo ">> updating Go dependencies"
@for m in $$(go list -mod=readonly -m -f '{{ if and (not .Indirect) (not .Main)}}{{.Path}}{{end}}' all); do \
go get $$m; \
done
go mod tidy
ifneq (,$(wildcard vendor))
go mod vendor
endif
coverage:
docker-compose run --rm unit && [ -f ./coverage.html ] && xdg-open coverage.html
.PHONY: all build clean unit rebuild coverage