-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
42 lines (37 loc) · 1.21 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
.PHONY: help
help:
@echo "Generate elixir bindings using the buf command. Run 'make generate'"
generate:
@echo "Remember to install buf from: https://docs.buf.build/installation "
@echo "Remember to install protoc-gen-elixir from: https://github.com/elixir-protobuf/protobuf"
@echo "Generating proto definitions for elixir.."
./buf.gen.yaml
@echo "Generation successful"
@echo "Copying files to authzed/api folder..."
cp -r authzed/api/* lib/api/
@echo "Copying files to google/rpc folder..."
@mkdir -p lib/google
cp -r google/rpc lib/google/
@echo "Files moved successfully"
@echo "Removing generated files.."
rm -rf authzed
@echo "File cleanup completed"
@echo "Formating files.."
mix format
@echo "Formating completed"
start-infra:
@echo "Stopping and removing old containers.."
docker compose stop
docker compose rm -f
@echo "Starting infra.."
docker compose up -d
stop-infra:
docker compose stop
docker compose rm -f
run-tests:
docker compose -f docker-compose-test.yml stop
docker compose -f docker-compose-test.yml rm -f
docker compose -f docker-compose-test.yml up -d
mix test --warnings-as-errors
docker compose -f docker-compose-test.yml stop
docker compose -f docker-compose-test.yml rm -f