File tree 4 files changed +59
-0
lines changed
4 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ [run]
2
+ omit =
3
+ */python?.?/*
4
+ */lib-python/?.?/*.py
5
+ */lib_pypy/_*.py
6
+ */site-packages/ordereddict.py
7
+ */site-packages/nose/*
8
+ */unittest2/*
9
+
10
+ exclude_lines =
11
+ # Have to re-enable the standard pragma
12
+ pragma: no cover
13
+
14
+ [report]
15
+
16
+ exclude_lines =
17
+ pragma: no cover
18
+ if __name__ == ' __main__' :
Original file line number Diff line number Diff line change
1
+ language : python
2
+ python :
3
+ - " 2.7"
4
+ # command to install dependencies
5
+ install :
6
+ - " pip install -r requirements.txt --use-mirrors"
7
+ - pip install coveralls --use-mirrors
8
+ # command to run tests
9
+ script :
10
+ - " nosetests --with-coverage --cover-erase --cover-branches --cover-package=loggly"
11
+ after_success :
12
+ - coveralls
Original file line number Diff line number Diff line change
1
+ ifndef VIRTUAL_ENV
2
+ $(warning You should set up a virtualenv. See the README file.)
3
+ endif
4
+
5
+ test : unittest lint
6
+
7
+ unittest :
8
+ @nosetests --with-coverage --cover-html --cover-erase --cover-branches --cover-package=loggly
9
+
10
+ lint :
11
+ @find . -name ' *.py' -exec flake8 {} \;
12
+
13
+ verboselint :
14
+ @find . -name ' *.py' -exec flake8 --show-pep8 --show-source {} \;
15
+
16
+ # remove the doc folder
17
+ clean :
18
+ @find . -name " *.pyc" -delete
19
+ @rm -r cover
20
+
21
+ publish :
22
+ @python setup.py sdist upload
23
+
24
+ .PHONY : test unittest lint verboselint clean publish
Original file line number Diff line number Diff line change
1
+ coverage == 3.7.1
2
+ flake8 == 2.1.0
3
+ mock == 1.0.1
4
+ nose == 1.3.0
5
+ requests-futures == 0.9.4
You can’t perform that action at this time.
0 commit comments