statusd/Makefile

27 lines
813 B
Makefile

##
# statusd makefile
#
# @file
# @version 0.1
.PHONY: build-dev run-server run-client run-gui-test
build-dev:
PIPENV_PIPFILE=statusd_server/Pipfile pipenv install
PIPENV_PIPFILE=test_client/Pipfile pipenv install
PIPENV_PIPFILE=statusd_server/Pipfile pipenv run protoc --python_betterproto_out statusd_server/proto messages.proto
PIPENV_PIPFILE=test_client/Pipfile pipenv run protoc --python_betterproto_out test_client/proto messages.proto
run-server:
PIPENV_PIPFILE=statusd_server/Pipfile pipenv run python -m statusd_server
run-client:
PIPENV_PIPFILE=test_client/Pipfile pipenv run python -m test_client
run-gui-test:
PIPENV_PIPFILE=statusd_server/Pipfile pipenv run python -m statusd_server &
sleep 2000
PIPENV_PIPFILE=test_client/Pipfile pipenv run python -m test_client
sleep 2000
pkill $!