Skip to content

Commit

Permalink
Merge pull request #16 from enthought/cleanup-travis-ci-build
Browse files Browse the repository at this point in the history
Cleanup travis ci build
  • Loading branch information
itziakos committed Feb 24, 2014
2 parents 19d166f + d85d4a9 commit c5ac3b6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 13 deletions.
21 changes: 21 additions & 0 deletions .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
24 changes: 11 additions & 13 deletions .travis.yml
Expand Up @@ -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
14 changes: 14 additions & 0 deletions 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

0 comments on commit c5ac3b6

Please sign in to comment.