diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-09-12 08:03:39 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-09-12 09:00:12 +0200 |
commit | 3ded91b33ad1f756ed9e7c798528aeace532fdf3 (patch) | |
tree | e3de240e25184022d36f1bdbf8210852897a07da | |
parent | 9fcd6b1595c08363d09760c48fc24ece61c5a97f (diff) |
Move doc generation and test invocation to separate Makefile
-rw-r--r-- | HACKING | 4 | ||||
-rw-r--r-- | Makefile | 22 | ||||
-rwxr-xr-x | debian/rules | 15 |
3 files changed, 27 insertions, 14 deletions
@@ -2,7 +2,7 @@ Running the Tests ----------------- The tests are run via - python setup.py nosetests + make To also run the component tests, you need to initialize the git submodules once via: @@ -17,7 +17,7 @@ Building the API Docs --------------------- You can build the API docs using - epydoc -v --config=setup.cfg + make apidocs Contributing Patches diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..4575b355 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +all: syntax-check test + +test: + export GIT_AUTHOR_NAME="Gbp Tests"; \ + export GIT_AUTHOR_EMAIL=tests@example.com; \ + export GIT_COMMITTER_NAME=$$GIT_AUTHOR_NAME; \ + export GIT_COMMITTER_EMAIL=$$GIT_AUTHOR_EMAIL; \ + PYTHONPATH=. \ + python setup.py nosetests --with-xcoverage + +syntax-check: + PYTHONPATH=. pychecker $(PYCHECKER_ARGS) -q \ + gbp gbp.scripts gbp.git gbp.deb + +docs: + make -C docs + +apidocs: + mkdir -p build + epydoc -v --config=setup.cfg + +.PHONY: docs diff --git a/debian/rules b/debian/rules index 405bb88d..00702d4d 100755 --- a/debian/rules +++ b/debian/rules @@ -14,28 +14,19 @@ ZSH_COMPDIR = /usr/share/zsh/vendor-completions/ PYCHECKER_ARGS=-boptparse --no-override --no-shadowbuiltin %: - dh $@ --with python2 + dh $@ --with python2 --buildsystem=python_distutils override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) dh_auto_test - export GIT_AUTHOR_NAME="Gbp Tests"; \ - export GIT_AUTHOR_EMAIL=tests@example.com; \ - export GIT_COMMITTER_NAME=$$GIT_AUTHOR_NAME; \ - export GIT_COMMITTER_EMAIL=$$GIT_AUTHOR_EMAIL; \ - PYTHONPATH=. \ - python setup.py nosetests --with-xcoverage - - PYTHONPATH=. pychecker $(PYCHECKER_ARGS) -q \ - gbp gbp.scripts gbp.git gbp.deb + make else @echo "Checks disabled via DEB_BUILD_OPTIONS" endif override_dh_auto_build: dh_auto_build - epydoc -v --config=setup.cfg - make -C docs/ + make apidocs docs override_dh_auto_install: dh_auto_install |