2020-02-07 09:56:08 +01:00
|
|
|
.PHONY: all
|
|
|
|
.PHONY: regression_test
|
2019-11-04 15:00:46 +01:00
|
|
|
|
2020-01-31 10:50:28 +01:00
|
|
|
prod:
|
|
|
|
docker-compose -f docker/oef_prod/docker-compose.yml down
|
|
|
|
docker-compose -f docker/oef_prod/docker-compose.yml up --build -d
|
2019-11-04 15:00:46 +01:00
|
|
|
|
2019-11-14 12:55:22 +01:00
|
|
|
dev:
|
2019-11-04 15:00:46 +01:00
|
|
|
killall main || echo "Process was not running."
|
2020-01-31 10:50:28 +01:00
|
|
|
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 &
|
2019-11-04 15:00:46 +01:00
|
|
|
|
2020-01-31 10:50:28 +01:00
|
|
|
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 &
|
|
|
|
|
2020-02-06 12:46:29 +01:00
|
|
|
regression_test:
|
2020-02-07 09:56:08 +01:00
|
|
|
go build .
|
2020-02-06 12:46:29 +01:00
|
|
|
docker-compose -f docker/oef_regression_test/docker-compose.yaml down
|
2020-02-07 09:56:08 +01:00
|
|
|
docker-compose -f docker/oef_regression_test/docker-compose.yaml up --build -d
|
2020-02-06 12:46:29 +01:00
|
|
|
|
2020-01-31 10:50:28 +01:00
|
|
|
all: prod
|