forked from cobrateam/splinter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (28 loc) · 1006 Bytes
/
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
clean:
@find . -name "*.pyc" -delete
doc_dependencies: sphinx
dependencies: unittest2 argparse coverage selenium flask lxml zopetestbrowser
doc: doc_dependencies
@cd docs && make clean && make html
argparse:
@python -c 'import argparse' 2>/dev/null || pip install argparse
coverage:
@python -c 'import coverage' 2>/dev/null || pip install coverage==3.5.1
selenium:
@python -c 'import selenium' 2>/dev/null || pip install selenium==2.14
unittest2:
@python -c 'from unittest import skip' 2>/dev/null || pip install unittest2
flask:
@python -c 'import flask' 2>/dev/null || pip install flask==0.7.2
lxml:
@python -c 'import lxml' 2>/dev/null || pip install lxml==2.3.1
sphinx:
@python -c 'import sphinx' 2>/dev/null || pip install sphinx==1.0.8
zopetestbrowser:
@python -c 'import zope.testbrowser' 2>/dev/null || pip install zope.testbrowser==4.0.2
which = 'tests'
test: dependencies clean
@echo "Running all tests..."
@coverage run run_tests.py -w $(which)
@coverage report
@echo