X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=Makefile;h=7806fcb10b7417581689250b7b7cf09eeae0002e;hb=fd17d64a37b6074b69c99121a9a284dcd4acc056;hp=4fe3b77f1e2d64d8825cd21b68f66e1982c0381d;hpb=c469220afc22c6854dcf553c727ddd9de72809f0;p=osm%2Fosmclient.git diff --git a/Makefile b/Makefile index 4fe3b77..7806fcb 100644 --- a/Makefile +++ b/Makefile @@ -23,42 +23,27 @@ BUILD_TOOLS=python python3 virtualenv \ libcurl4-gnutls-dev python-pip \ python3-pip libgnutls-dev debhelper -VENV=osmclient-venv -VENV3=osmclient-venv3 -VENV_BIN=$(VENV)/bin/python -VENV3_BIN=$(VENV3)/bin/python - -venv: $(VENV)/bin/activate -venv3: $(VENV3)/bin/activate - -$(VENV)/bin/activate: test_requirements.txt - test -d $(VENV) || virtualenv $(VENV) - $(VENV)/bin/pip install -Ur test_requirements.txt - touch $(VENV)/bin/activate - -$(VENV3)/bin/activate: test_requirements.txt - test -d $(VENV3) || virtualenv -p python3 $(VENV3) - $(VENV3)/bin/pip3 install -Ur test_requirements.txt - touch $(VENV3)/bin/activate - build_tools: sudo apt-get -y install $(BUILD_TOOLS) package: - $(VENV_BIN) setup.py --command-packages=stdeb.command bdist_deb + python setup.py --command-packages=stdeb.command bdist_deb -test_flake8: venv - $(VENV_BIN) setup.py flake8 +test_flake8: + pip install -Ur test_requirements.txt + python setup.py flake8 -test_nose: venv - $(VENV_BIN) setup.py test +test_nose: test_requirements.txt + pip install -Ur test_requirements.txt + python setup.py test -test_nose3: venv3 - $(VENV3_BIN) setup.py test +test_nose3: test_requirements.txt + pip3 install -Ur test_requirements.txt + python3 setup.py test test: test_flake8 test_nose test_nose3 .PHONY: package build_tools test test_flake8 test_nose test_nose3 clean: - rm -rf $(VENV) $(VENV3) deb_dist dist osmclient.egg-info + rm -rf deb_dist dist osmclient.egg-info