-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (32 loc) · 796 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
37
38
39
40
41
42
43
44
45
build:
@bash scripts/build.sh
create-pass: build
@./bin/passgen generate -l=$(l)
strong-password:
docker build -t go-passtrong -f ./docker/Dockerfile_StrongPass .
docker run go-passtrong:latest
@docker rmi -f go-passtrong >/dev/null 2>&1
@docker rm $$(docker ps -a -f status=exited -q) -f >/dev/null 2>&1
build-docker:
@bash ./scripts/docker/network_config.sh;
docker-compose up --build
run-docker:
docker-compose up
up:
docker-compose up -d
down:
docker-compose down
clean-builds:
@rm -f bin/*
test:
go test ./...
test-detail:
go test ./... -v
test-coverage:
go test -cover ./...
generate-test-output:
go test -cover ./... -coverprofile=bin/testCoverage.out
test-output:
go tool cover -func=bin/testCoverage.out
test-html:
go tool cover -html=bin/testCoverage.out