oef/Makefile
2020-02-06 12:46:29 +01:00

25 lines
940 B
Makefile

PHONY: all
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:
docker-compose -f docker/oef_regression_test/docker-compose.yaml down
docker-compose -f docker/oef_regression_test/docker-compose.yaml up -d
all: prod