Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Commit 30920ab

Browse files
committed
Coveralls
1 parent 79ba01f commit 30920ab

File tree

6 files changed

+41
-11
lines changed

6 files changed

+41
-11
lines changed

.coveragerc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[report]
2+
exclude_lines =
3+
pragma: no cover
4+
def __repr__
5+
raise TypeError
6+
except UnicodeEncodeError
7+
except KeyboardInterrupt
8+
if __name__ == .__main__.:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ support/libsass.pc
5353
build/
5454
dist/
5555
docs/_build
56+
.coverage
5657
.tox
5758
.*.swp
5859
*.egg

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ python:
99
- 3.3
1010
- 3.4
1111
install:
12-
- pip install -e . "Werkzeug >= 0.9"
12+
- pip install -e . "Werkzeug >= 0.9" coverage coveralls
1313
script:
14-
- python setup.py test
14+
- coverage run --source sass,sassc,sassutils setup.py test
15+
after_success:
16+
- coveralls
1517
notifications:
1618
irc:
1719
channels:

README.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
libsass: SASS_ for Python
22
=========================
33

4+
.. image:: https://img.shields.io/pypi/v/libsass.svg
5+
:target: https://pypi.python.org/pypi/libsass
6+
:alt: The latest PyPI release
7+
8+
.. image:: https://travis-ci.org/dahlia/libsass-python.svg?branch=python
9+
:target: https://travis-ci.org/dahlia/libsass-python
10+
:alt: Build Status
11+
12+
.. image:: https://img.shields.io/coveralls/dahlia/libsass-python.svg
13+
:target: https://coveralls.io/r/dahlia/libsass-python
14+
:alt: Coverage Status
15+
416
This package provides a simple Python extension module ``sass`` which is
517
binding Libsass_ (written in C/C++ by Hampton Catlin and Aaron Leung).
618
It's very straightforward and there isn't any headache related Python
@@ -10,10 +22,6 @@ Need no Ruby nor Node.js.
1022

1123
It currently supports CPython 2.6, 2.7, 3.3, 3.4, and PyPy 1.9+!
1224

13-
.. image:: https://travis-ci.org/dahlia/libsass-python.png?branch=python
14-
:target: https://travis-ci.org/dahlia/libsass-python
15-
:alt: Build Status
16-
1725
.. _SASS: http://sass-lang.com/
1826
.. _Libsass: https://github.com/hcatlin/libsass
1927

docs/index.rst

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,25 @@ GitHub (Git repository + issues)
7979
https://github.com/dahlia/libsass-python
8080

8181
Travis CI
82-
http://travis-ci.org/dahlia/libsass-python
82+
https://travis-ci.org/dahlia/libsass-python
8383

84-
.. image:: https://secure.travis-ci.org/dahlia/libsass-python.png?branch=python
84+
.. image:: https://travis-ci.org/dahlia/libsass-python.svg?branch=python
85+
:target: https://travis-ci.org/dahlia/libsass-python
8586
:alt: Build Status
86-
:target: http://travis-ci.org/dahlia/libsass-python
87+
88+
Coveralls (Test coverage)
89+
https://coveralls.io/r/dahlia/libsass-python
90+
91+
.. image:: https://img.shields.io/coveralls/dahlia/libsass-python.svg
92+
:target: https://coveralls.io/r/dahlia/libsass-python
93+
:alt: Coverage Status
8794

8895
PyPI
89-
http://pypi.python.org/pypi/libsass
96+
https://pypi.python.org/pypi/libsass
97+
98+
.. image:: https://img.shields.io/pypi/v/libsass.svg
99+
:target: https://pypi.python.org/pypi/libsass
100+
:alt: The latest PyPI release
90101

91102
Changelog
92103
:doc:`changes`

sassc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def main(argv=sys.argv, stdout=sys.stdout, stderr=sys.stderr):
157157
if source_map_filename:
158158
with open(source_map_filename, 'w') as f:
159159
f.write(source_map)
160-
if options.watch:
160+
if options.watch: # pragma: no cover
161161
# FIXME: we should utilize inotify on Linux, and FSEvents on Mac
162162
while True:
163163
try:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy