projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4a4fbfc
)
Add offlinetest make target
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 14 Dec 2014 20:55:57 +0000
(21:55 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 14 Dec 2014 20:55:57 +0000
(21:55 +0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index d5b6e4307cb7a258016203b225eb2bf99331ecf9..2a32a6c0c64a8a5cfe0ec78945d7bdb12b09a068 100644
(file)
--- 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
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
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
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
pypi-files: youtube-dl.bash-completion README.txt youtube-dl.1 youtube-dl.fish