28 lines
1,013 B
Makefile
28 lines
1,013 B
Makefile
.PHONY: all
|
|
.PHONY: regression_test
|
|
|
|
prod:
|
|
docker-compose -f docker/oef_prod/docker-compose.yml down
|
|
docker-compose -f docker/oef_prod/docker-compose.yml up --build -d
|
|
|
|
dev:
|
|
killall main || echo "Process was not running."
|
|
docker-compose -f docker/oef_dev/docker-compose.yaml down
|
|
docker-compose -f docker/oef_dev/docker-compose.yaml up -d db
|
|
docker-compose -f docker/oef_dev/docker-compose.yaml up -d smtp
|
|
go run -race main.go --config=docker/oef_dev/config/config.yaml &
|
|
|
|
test:
|
|
killall main || echo "Process was not running."
|
|
docker-compose -f docker/oef_test/docker-compose.yaml down
|
|
docker-compose -f docker/oef_test/docker-compose.yaml up -d db
|
|
docker-compose -f docker/oef_test/docker-compose.yaml up -d smtp
|
|
go run -race main.go --config=docker/oef_test/config/config.yaml &
|
|
|
|
regression_test:
|
|
go build .
|
|
docker-compose -f docker/oef_regression_test/docker-compose.yaml down
|
|
docker-compose -f docker/oef_regression_test/docker-compose.yaml up --build -d
|
|
cd regression_test && make
|
|
|
|
all: prod
|