generated from ministryofjustice/hmpps-template-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
73 lines (52 loc) · 1.43 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
IMAGE := ministryofjustice/tech-docs-github-pages-publisher:v3
authenticate-docker:
./scripts/authenticate_docker.sh
build-dev:
#docker compose pull hmpps-auth
docker compose build
build:
docker build -t hmpps-integration-api .
serve-dependencies:
docker compose up prism local-stack-aws --build -d
serve: build-dev
docker compose up -d --wait
publish:
./scripts/publish.sh
stop:
docker compose down
unit-test:
./gradlew unitTest
smoke-test: serve
./gradlew smokeTest --warning-mode all
integration-test: serve
./gradlew integrationTest --warning-mode all
heartbeat:
./scripts/heartbeat.sh
test: unit-test smoke-test
e2e:
./gradlew integrationTest --warning-mode all
lint:
./gradlew ktlintCheck
format:
./gradlew ktlintFormat
check:
./gradlew check
generate-client-certificate:
cd ./scripts/client_certificates && ./generate.sh
preview-docs:
docker run --rm \
-v $$(pwd)/tech-docs/config:/app/config \
-v $$(pwd)/tech-docs/source:/app/source \
-p 4567:4567 \
-it $(IMAGE) /scripts/preview.sh
deploy-docs:
docker run --rm \
-v $$(pwd)/tech-docs/config:/app/config \
-v $$(pwd)/tech-docs/source:/app/source \
-it $(IMAGE) /scripts/deploy.sh
check-docs:
docker run --rm \
-v $$(pwd)/tech-docs/config:/app/config \
-v $$(pwd)/tech-docs/source:/app/source \
-it $(IMAGE) /scripts/check-url-links.sh
.PHONY: authenticate-docker build-dev test serve publish unit-test smoke-test build lint preview-docs check-docs