-
Notifications
You must be signed in to change notification settings - Fork 31
/
Makefile
56 lines (56 loc) · 2.69 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Galicaster, Multistream Recorder and Player
#
# Makefile for developing process: uses ´nosetests´ and ´pychecker´ apps
#
# $ pip install nose pychecker
#
# Copyright (c) 2012, Teltek Video Research <[email protected]>
#
# This work is licensed under the Creative Commons Attribution-
# NonCommercial-ShareAlike 3.0 Unported License. To view a copy of
# this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/
# or send a letter to Creative Commons, 171 Second Street, Suite 300,
# San Francisco, California, 94105, USA.
all:
@echo ' _____ _ _ _ '
@echo ' / ____| | (_) | | '
@echo ' | | __ __ _| |_ ___ __ _ ___| |_ ___ _ __ '
@echo ' | | |_ |/ _` | | |/ __/ _` / __| __/ _ \ "__|'
@echo ' | |__| | (_| | | | (_| (_| \__ \ || __/ | '
@echo ' \_____|\__,_|_|_|\___\__,_|___/\__\___|_| '
@echo ''
@echo ''
@echo 'make test - Run all the unit test (using nosetest)'
@echo 'make test-with-coverage - Run all the unit test (using nosetest) and gen coverage info'
@echo 'make test-with-coverage-html - Run all the unit test (using nosetest) and gen coverage info as an html page'
@echo 'make test-opencast - Run the opencast test (network access needed)'
@echo 'make test-recorder - Run the recorder test (gstreamer needed)'
@echo 'make test-functional - Run functional tests'
@echo 'make test-all - Run all the test (using nosetest)'
@echo 'make check - Check the python source code (using pychecker)'
@echo 'make doblecheck - Check the python source code (using pyflakes)'
@echo 'make pep8 - Run PEP8 compliance tests(using pep8)'
test:
nosetests3 --all-modules -a '!nodefault'
test-travis:
nosetests3 --all-modules -a '!nodefault,!notravis' --with-coverage --cover-inclusive --cover-package=galicaster
test-with-coverage:
nosetests3 --all-modules -a '!nodefault' --with-coverage --cover-inclusive --cover-package=galicaster
test-with-coverage-html:
nosetests3 --all-modules -a '!nodefault' --with-coverage --cover-inclusive --cover-package=galicaster --cover-html
test-opencast:
nosetests3 --all-modules -a 'opencast'
test-recorder:
nosetests3 --all-modules -a 'recorder'
#python -m unittest tests.recorder.recorder
test-functional:
nosetests3 --all-modules -a 'functional'
test-all:
nosetests3 --all-modules --no-skip
check:
flake8 --ignore=E,W --builtins="int,long,unicode" --format pylint `find galicaster -name '*.py'`
doblecheck:
pyflakes `find galicaster -name '*.py'`
pyflakes `find test -name '*.py'`
pep8:
-pep8 -r --ignore=E501,E221,W291,W391,E302,E251,E203,W293,E231,E303,E201,E225,E261,E241 galicaster