Skip to content

Commit

Permalink
Set up coveralls.io hook
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanboniface committed Sep 9, 2015
1 parent 39d3cdf commit 3dea9c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ mapnik/paths.py
.mason/
mason_packages/
mapnik/plugins
.coverage
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,22 @@ before_install:
- PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user nose
- PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user wheel
- PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user twine
# prevent from compiling libyaml (which fails with clang) when installing PyYAML as python-coveralls dependency
- PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user --install-option="--without-libyaml" PyYAML
- PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user --no-compile python-coveralls
- python --version

install:
- python setup.py install --prefix $(pwd)/mason_packages/.link

before_script:
- python test/run_tests.py -q

script:
- python test/visual.py -q
- python setup.py nosetests --with-coverage --cover-package=mapnik

after_script:
- coveralls

after_success:
- if [[ ${COMMIT_MESSAGE} =~ "[publish]" ]]; then
python setup.py bdist_wheel;
if [[ $(uname -s) == 'Linux' ]]; then
Expand Down

0 comments on commit 3dea9c7

Please sign in to comment.