forked from decrypto-org/rupture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
20 lines (19 loc) · 829 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
all: syntax test
syntax:
# Syntax check python backend
# TODO: get rid of these exceptions
find backend -iname '*.py'|grep -v '/env/'|xargs pep8 --ignore E501,E402,E126,E121
# Syntax check sniffer python
find sniffer -iname "*.py"|grep -v '/env/'|xargs pep8 --ignore E501,E226
# Syntax check realtime JS
find realtime -iname "*.js"|grep -v '/node_modules/'|xargs node_modules/jshint/bin/jshint
# Syntax check client JS
find client -iname "*.js"|grep -v '/node_modules/'|grep -v '/dist/'|xargs node_modules/jshint/bin/jshint
# Syntax check MD files
mdl --rules ~MD036 etc
test:
cd backend && coverage run --source=breach ./manage.py test
cd sniffer && nosetests --with-coverage --cover-package=app,sniffer
cd realtime && npm run test
cd client && npm run test
coverage combine backend/.coverage sniffer/.coverage