diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..b68ea2f --- /dev/null +++ b/.coveragerc @@ -0,0 +1,21 @@ +[run] +branch = True +source = codetools +omit = */tests/* + +[report] +# Regexes for lines to exclude from consideration +exclude_lines = + # Have to re-enable the standard pragma + pragma: no cover + + # Don't complain about missing debug-only code: + def __repr__ + + # Don't complain if tests don't hit defensive assertion code: + raise AssertionError + raise NotImplementedError + + if __name__ == .__main__.: + +ignore_errors = True diff --git a/.travis.yml b/.travis.yml index b6ebb39..0eb2974 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,22 +2,20 @@ language: python python: - 2.7 - 2.6 -install: - # nose is already installed - - pip install unittest2 coverage futures - - sudo apt-get install python-numpy +before_install: + - sudo apt-get update - sudo apt-get install swig - # Test against the current master of traits - - pip install git+http://github.com/enthought/traits.git#egg=traits - - pip install git+http://github.com/enthought/traitsui.git#egg=traitsui - - pip install git+http://github.com/enthought/enable.git#egg=enable - - pip install git+http://github.com/enthought/chaco.git#egg=chaco - - pip install git+http://github.com/enthought/scimath.git#egg=scimath - - pip install git+http://github.com/enthought/apptools.git#egg=apptools - - pip install git+http://github.com/enthought/blockcanvas.git#egg=blockcanvas +install: + - pip install cython + - pip install -r dev_requirements.txt + - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi - python setup.py develop + # there is a circular dependency with codetools + - pip install -e git+http://github.com/enthought/blockcanvas.git#egg=blockcanvas script: - - nosetests --with-coverage --cover-package=codetools + - coverage run -m nose.core notifications: email: - travis-ci@enthought.com +after_success: + coveralls diff --git a/dev_requirements.txt b/dev_requirements.txt new file mode 100644 index 0000000..4c0d686 --- /dev/null +++ b/dev_requirements.txt @@ -0,0 +1,14 @@ +--allow-external PIL +--allow-unverified PIL +numpy +coverage +futures +coveralls +-e git+http://github.com/enthought/scimath.git#egg=scimath +-e git+http://github.com/enthought/traits.git#egg=traits +-e git+http://github.com/enthought/traitsui.git#egg=traitsui +-e git+http://github.com/enthought/pyface.git#egg=pyface +-e git+http://github.com/enthought/enable.git#egg=enable +-e git+http://github.com/enthought/apptools.git#egg=apptools +-e git+http://github.com/enthought/etsdevtools.git#egg=etsdevtools +