Commit a5768e5c authored by Christian Ledermann's avatar Christian Ledermann

yapf and autopep8 changes, add codecov to travis, remove continuous deploy for now

parent fd84af85
...@@ -8,6 +8,8 @@ python: ...@@ -8,6 +8,8 @@ python:
env: env:
- LXML=true - LXML=true
- LXML=false - LXML=false
before_install:
pip install codecov
install: install:
- pip install -r requirements.txt - pip install -r requirements.txt
- if $LXML == true; then pip install lxml; fi - if $LXML == true; then pip install lxml; fi
...@@ -15,16 +17,11 @@ install: ...@@ -15,16 +17,11 @@ install:
script: script:
- coverage run --source=fastkml setup.py test - coverage run --source=fastkml setup.py test
- if [[ $TRAVIS_PYTHON_VERSION != 3.2 ]]; then cd docs && make html; fi - if [[ $TRAVIS_PYTHON_VERSION != 3.2 ]]; then cd docs && make html; fi
after_success: coveralls after_success:
coveralls
codecov
notifications: notifications:
email: email:
- christian.ledermann@gmail.com - christian.ledermann@gmail.com
- IanLee1521@gmail.com - IanLee1521@gmail.com
deploy:
provider: pypi
user:
password:
secure:
distributions: "sdist bdist_wheel"
on:
tags: true
...@@ -130,9 +130,9 @@ class Geometry(_BaseObject): ...@@ -130,9 +130,9 @@ class Geometry(_BaseObject):
def _set_altitude_mode(self, element): def _set_altitude_mode(self, element):
if self.altitude_mode: if self.altitude_mode:
# XXX add 'relativeToSeaFloor', 'clampToSeaFloor',
assert(self.altitude_mode in [ assert(self.altitude_mode in [
'clampToGround', 'clampToGround',
# 'relativeToSeaFloor', 'clampToSeaFloor',
'relativeToGround', 'absolute' 'relativeToGround', 'absolute'
]) ])
if self.altitude_mode != 'clampToGround': if self.altitude_mode != 'clampToGround':
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment