oef/Makefile
2020-02-10 09:41:09 +01:00

29 lines
1 KiB
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=config/config.test.yaml &
regression_test:
go build .
docker-compose -f docker/oef_regression_test/docker-compose.yaml up --build -d
./bash/wait_until_up.bash oef_regression_test
./bash/wait_until_up.bash oef_regression_test_selenium_1
cd regression_test && make
all: prod