forked from goodhamgupta/authzed_ex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (31 loc) · 1.04 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
.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 "Files moved successfully"
@echo "Removing generated files.."
rm -rf authzed
@echo "File cleanup 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