-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
21 lines (17 loc) · 1.45 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Misc
.DEFAULT_GOAL = help
help: ## Outputs this help screen
@grep -E '(^[a-zA-Z0-9_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}{printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
## —— Build 🏗️———————————————————————————————————————————————————————————————————————
java-build-application: ## Builds application including automated tests
./mvnw clean package
## —— Run 🏃🏽————————————————————————————————————————————————————————————————————————
java-run-application: ## Starts app in development mode (postgres db will be started automatically)
./mvnw spring-boot:test-run
## —— Test 👀—————————————————————————————————————————————————————————————————————————
http-test-request: ## Sends a test rest request and create a company | NOTE: a running server is required (make java-run-application)
docker run --rm -i -t -v ./:/workdir jetbrains/intellij-http-client:231.9011.14 \
-L VERBOSE \
-e docker \
-v ./http-client.env.json \
./requests.http