Commit a5bab00a authored by Hamza Baqa's avatar Hamza Baqa

Delete Makefile~

parent 563938f9
version = 1.0
AMQP_URL=amqp://2XU190DG:BM7F9VB8@mq.dev.f-interop.eu:443/1db49a57-fe56-45a5-aafa-d00f86a3744f
AMQP_EXCHANGE=amq.topic
DOCKER_GW = 172.17.42.1
info:
@echo $(info_message)
version:
@echo SemTest v$(version)
env: ## set env vars
@echo "Creating var env "
export AMQP_URL=$(AMQP_URL)
@echo $(AMQP_URL)
export AMQP_EXCHANGE=$(AMQP_EXCHANGE)
help: ## Help dialog.
@IFS=$$'\n' ; \
help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//'`); \
for help_line in $${help_lines[@]}; do \
IFS=$$'#' ; \
help_split=($$help_line) ; \
help_command=`echo $${help_split[0]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \
help_info=`echo $${help_split[2]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \
printf "%-30s %s\n" $$help_command $$help_info ; \
done
build-tools: ## builds all testing tool docker images (only testing tool)
@echo $(info_message)
@echo "Starting to build docker images.. "
$(MAKE) _docker-build-semtest
sniff-bus: ## Listen and echo all messages in the event bus
@echo "Using AMQP env vars: {url : $(AMQP_URL), exchange : $(AMQP_EXCHANGE)}"
ioppytest-cli connect
stop-all:
@echo "Stop the SemTest cointainer"
docker stop easyglobalmarket-semtest
run-semtest-testing-tool: ## Run SemTest testing tool in docker container
@echo "Using AMQP env vars: {url : $(AMQP_URL), exchange : $(AMQP_EXCHANGE)}"
docker run -p 9093:8080 -d --rm --env AMQP_EXCHANGE=$(AMQP_EXCHANGE) --env AMQP_URL=$(AMQP_URL) --name easyglobalmarket-semtest easyglobalmarket-semtest
docker run -d --rm --env AMQP_EXCHANGE=$(AMQP_EXCHANGE) --env AMQP_URL=$(AMQP_URL) --env DOCKER_GW=$(DOCKER_GW) --name easyglobalmarket-semtest-launcher easyglobalmarket-semtest-launcher
run-tests: ## runs all unittests
@echo "Using AMQP env vars: {url : $(AMQP_URL), exchange : $(AMQP_EXCHANGE)}"
$(MAKE) _test_utils
run-con-test: ## runs all unittests
@echo "Using AMQP env vars: {url : $(AMQP_URL), exchange : $(AMQP_EXCHANGE)}"
$(MAKE) _test_utils_conf
_test_utils_conf:
cd semtest/test ;python3 test_conf.py
_test_utils:
cd semtest/test ;python3 test.py
install-python-dependencies: ## installs all python pip dependencies
@echo 'installing py3 dependencies...'
@python3 -m pip install ioppytest-utils --user
_check-sudo:
@runner=`whoami` ;\
if test $$runner != "root" ;\
then \
echo "(!) You are not root. This command requires 'sudo -E' \n"; \
fi
_docker-build-semtest:
@echo "Starting to build SemTest testing tools.."
# let's build the testing tool image (same for interop and conformance)
docker build --quiet -t easyglobalmarket-semtest$(version) -f semtest/SemTest/Dockerfile .
docker build --quiet -t easyglobalmarket-semtest-launcher$(version) -f semtest/SemTest_launcher/Dockerfile .
# tag all last version images also with a version-less name
docker tag easyglobalmarket-semtest$(version):latest easyglobalmarket-semtest
docker tag easyglobalmarket-semtest-launcher$(version):latest easyglobalmarket-semtest-launcher
info_message = """ \\n\
******************************************************************************************\n\
docker images naming must follow the following conventions: \n\
\n\
resource_type-sub_type-resource_name-version \n\
\n\
resource_type, sub_type and resource_name cannot contain any special character, nor '-' \n\
version format must comply to vx.x \n\
\n\
examples: \n\
\n\
testing_tool-semtest-v$(version) \n\
\n\
******************************************************************************************\n\\n\
"""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment