Skip to content

Commit

Permalink
yapf and autopep8 changes, add codecov to travis, remove continuous d…
Browse files Browse the repository at this point in the history
…eploy for now
  • Loading branch information
cleder committed Jul 2, 2015
1 parent fd84af8 commit a5768e5
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 145 deletions.
15 changes: 6 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,20 @@ python:
env:
- LXML=true
- LXML=false
before_install:
pip install codecov
install:
- pip install -r requirements.txt
- if $LXML == true; then pip install lxml; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi
script:
- coverage run --source=fastkml setup.py test
- if [[ $TRAVIS_PYTHON_VERSION != 3.2 ]]; then cd docs && make html; fi
after_success: coveralls
after_success:
coveralls
codecov
notifications:
email:
- christian.ledermann@gmail.com
- IanLee1521@gmail.com
deploy:
provider: pypi
user:
password:
secure:
distributions: "sdist bdist_wheel"
on:
tags: true

2 changes: 1 addition & 1 deletion fastkml/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ def __init__(

def _set_altitude_mode(self, element):
if self.altitude_mode:
# XXX add 'relativeToSeaFloor', 'clampToSeaFloor',
assert(self.altitude_mode in [
'clampToGround',
# 'relativeToSeaFloor', 'clampToSeaFloor',
'relativeToGround', 'absolute'
])
if self.altitude_mode != 'clampToGround':
Expand Down
280 changes: 145 additions & 135 deletions fastkml/test_main.py

Large diffs are not rendered by default.

0 comments on commit a5768e5

Please sign in to comment.