oef/Makefile

30 lines
1 KiB
Makefile
Raw Normal View History

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=config/config.test.yaml &
2020-01-31 10:50:28 +01:00
2020-02-06 12:46:29 +01:00
regression_test:
2020-02-07 09:56:08 +01:00
go build .
docker-compose -f docker/oef_regression_test/docker-compose.yaml up --build -d
2020-02-08 08:55:44 +01:00
./bash/wait_until_up.bash oef_regression_test
./bash/wait_until_up.bash oef_regression_test_selenium_1
2020-02-08 08:55:44 +01:00
cd regression_test && make
2020-02-06 12:46:29 +01:00
2020-01-31 10:50:28 +01:00
all: prod