aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-12-14 21:55:57 +0100
committerPhilipp Hagemeister <[email protected]>2014-12-14 21:55:57 +0100
commita0ab29f8a10e2a97f87182a85a6309ae61ec27b0 (patch)
tree12046b7402c0137a18f708497400bad85a08886a
parent4a4fbfc9670cb3d2e5f0bc486c83ef1e6eb21ad3 (diff)
downloadyoutube-dl-a0ab29f8a10e2a97f87182a85a6309ae61ec27b0.tar.gz
youtube-dl-a0ab29f8a10e2a97f87182a85a6309ae61ec27b0.zip
Add offlinetest make target
-rw-r--r--Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d5b6e4307..2a32a6c0c 100644
--- a/Makefile
+++ b/Makefile
@@ -35,13 +35,27 @@ install: youtube-dl youtube-dl.1 youtube-dl.bash-completion youtube-dl.zsh youtu
install -d $(DESTDIR)$(SYSCONFDIR)/fish/completions
install -m 644 youtube-dl.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/youtube-dl.fish
+codetest:
+ PYFLAKES_OUT=$$(pyflakes youtube_dl | grep -v youtube_dl/extractor/__init__.py); \
+ if test -n "$$PYFLAKES_OUT"; then \
+ echo "$$PYFLAKES_OUT"; \
+ exit 1; \
+ fi
+ pep8 . --ignore E501
+
test:
#nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test
nosetests --verbose test
+ $(MAKE) codetest
+
+ot: offlinetest
+
+offlinetest: codetest
+ nosetests --verbose test --exclude test_download --exclude test_age_restriction --exclude test_subtitles
tar: youtube-dl.tar.gz
-.PHONY: all clean install test tar bash-completion pypi-files zsh-completion fish-completion
+.PHONY: all clean install test tar bash-completion pypi-files zsh-completion fish-completion ot offlinetest codetest
pypi-files: youtube-dl.bash-completion README.txt youtube-dl.1 youtube-dl.fish