Skip to content

Commit

Permalink
Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed May 22, 2014
1 parent 79ba01f commit 30920ab
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[report]
exclude_lines =
pragma: no cover
def __repr__
raise TypeError
except UnicodeEncodeError
except KeyboardInterrupt
if __name__ == .__main__.:
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ support/libsass.pc
build/
dist/
docs/_build
.coverage
.tox
.*.swp
*.egg
Expand Down
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ python:
- 3.3
- 3.4
install:
- pip install -e . "Werkzeug >= 0.9"
- pip install -e . "Werkzeug >= 0.9" coverage coveralls
script:
- python setup.py test
- coverage run --source sass,sassc,sassutils setup.py test
after_success:
- coveralls
notifications:
irc:
channels:
Expand Down
16 changes: 12 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
libsass: SASS_ for Python
=========================

.. image:: https://img.shields.io/pypi/v/libsass.svg
:target: https://pypi.python.org/pypi/libsass
:alt: The latest PyPI release

.. image:: https://travis-ci.org/dahlia/libsass-python.svg?branch=python
:target: https://travis-ci.org/dahlia/libsass-python
:alt: Build Status

.. image:: https://img.shields.io/coveralls/dahlia/libsass-python.svg
:target: https://coveralls.io/r/dahlia/libsass-python
:alt: Coverage Status

This package provides a simple Python extension module ``sass`` which is
binding Libsass_ (written in C/C++ by Hampton Catlin and Aaron Leung).
It's very straightforward and there isn't any headache related Python
Expand All @@ -10,10 +22,6 @@ Need no Ruby nor Node.js.

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

.. image:: https://travis-ci.org/dahlia/libsass-python.png?branch=python
:target: https://travis-ci.org/dahlia/libsass-python
:alt: Build Status

.. _SASS: http://sass-lang.com/
.. _Libsass: https://github.com/hcatlin/libsass

Expand Down
19 changes: 15 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,25 @@ GitHub (Git repository + issues)
https://github.com/dahlia/libsass-python

Travis CI
http://travis-ci.org/dahlia/libsass-python
https://travis-ci.org/dahlia/libsass-python

.. image:: https://secure.travis-ci.org/dahlia/libsass-python.png?branch=python
.. image:: https://travis-ci.org/dahlia/libsass-python.svg?branch=python
:target: https://travis-ci.org/dahlia/libsass-python
:alt: Build Status
:target: http://travis-ci.org/dahlia/libsass-python

Coveralls (Test coverage)
https://coveralls.io/r/dahlia/libsass-python

.. image:: https://img.shields.io/coveralls/dahlia/libsass-python.svg
:target: https://coveralls.io/r/dahlia/libsass-python
:alt: Coverage Status

PyPI
http://pypi.python.org/pypi/libsass
https://pypi.python.org/pypi/libsass

.. image:: https://img.shields.io/pypi/v/libsass.svg
:target: https://pypi.python.org/pypi/libsass
:alt: The latest PyPI release

Changelog
:doc:`changes`
Expand Down
2 changes: 1 addition & 1 deletion sassc.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def main(argv=sys.argv, stdout=sys.stdout, stderr=sys.stderr):
if source_map_filename:
with open(source_map_filename, 'w') as f:
f.write(source_map)
if options.watch:
if options.watch: # pragma: no cover
# FIXME: we should utilize inotify on Linux, and FSEvents on Mac
while True:
try:
Expand Down

0 comments on commit 30920ab

Please sign in to comment.