-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (45 loc) · 1.61 KB
/
Copy pathMakefile
File metadata and controls
65 lines (45 loc) · 1.61 KB
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
# Set the container runtime based on architecture, default to docker for amd64 and podman for arm64
DOCKER ?= $(shell if [ "$$(uname -m)" = "arm64" ]; then echo podman; else echo docker; fi)
build:
CONTAINER_CLI=$(DOCKER) ./build.sh
build-no-test:
CONTAINER_CLI=$(DOCKER) SKIP_TESTS=true ./build.sh
test: test-mvn test-ui
test-mvn:
CONTAINER_CLI=$(DOCKER) mvn clean verify jacoco:report
test-ui:
cd ui && npm install && npx eslint . && npm test -- --watchAll=false
run-dev-api: build
docker run -e spring_profiles_active=docker --network=censusrmdockerdev_default --link ons-postgres:postgres -p 9999:9999 census-rm-support-tool:latest
run-dev-ui:
cd ui && npm install && npm start
format-check-mvn:
mvn spotless:check
check-mvn:
mvn spotless:check pmd:check
format-check-ui:
$(MAKE) -C ui format-check
format-check: format-check-mvn format-check-ui
format-mvn:
mvn spotless:apply
format-ui:
$(MAKE) -C ui format
format: format-mvn format-ui
package-audit-ui:
$(MAKE) -C ui package-audit
docker-build:
SKIP_TESTS=true ./build.sh
megalint: ## Run the mega-linter.
$(DOCKER) run --platform linux/amd64 --rm \
-v /var/run/docker.sock:/var/run/docker.sock:rw \
-v $(shell pwd):/tmp/lint:rw \
oxsecurity/megalinter-documentation:v8
megalint-fix: ## Run the mega-linter and attempt to auto fix any issues.
$(DOCKER) run --platform linux/amd64 --rm \
-v /var/run/docker.sock:/var/run/docker.sock:rw \
-v $(shell pwd):/tmp/lint:rw \
-e APPLY_FIXES=all \
oxsecurity/megalinter-documentation:v8
clean_megalint: ## Clean the temporary files.
rm -rf megalinter-reports
lint_check: clean_megalint megalint