X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=524c5fcda6c5095ad47738d8b5e493eecee54053;hb=ee6dfe8308c967573a9d12d8dbbc1533cec45f51;hp=d5b6e4307cb7a258016203b225eb2bf99331ecf9;hpb=e56190b378367291abe4677f2357fcfc213b1a6a;p=youtube-dl diff --git a/Makefile b/Makefile index d5b6e4307..524c5fcda 100644 --- a/Makefile +++ b/Makefile @@ -35,13 +35,26 @@ 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: + FLAKE8_OUT=$$(flake8 --ignore E501 . | grep -v youtube_dl/extractor/__init__.py); \ + if test -n "$$FLAKE8_OUT"; then \ + echo "$$FLAKE8_OUT"; \ + exit 1; \ + fi + 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 --exclude test_write_annotations 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