-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (25 loc) · 877 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
PROJECT_NAME := hackney-shared-tenure-test
# The dangling image removal doesn't behave as expected on Windows Powershell.
# It is recommended to run Makefile commands using `git bash` if you're using Windows.
# If you decide to stick with Powershell regardless, everything except dangling image removal will still work,
# however, you'll need to remove those <none> <none> images by listing out their hashes manually.
.PHONY: clean
clean:
docker rmi ${PROJECT_NAME}
-docker rmi $$(docker images --filter "dangling=true" -q --no-trunc)
.PHONY: test
test:
-docker-compose run --rm ${PROJECT_NAME}
-make clean
.PHONY: ensure-dotnet-format
ensure-dotnet-format:
-dotnet tool install -g dotnet-format
dotnet tool update -g dotnet-format
.PHONY: checkf
checkf:
make ensure-dotnet-format
dotnet-format --check
.PHONY: lint
lint:
make ensure-dotnet-format
dotnet format