Skip to content

Commit

Permalink
CI template
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Aug 6, 2018
1 parent 8597e7c commit c7039da
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
13 changes: 6 additions & 7 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@ image:
- Visual Studio 2017
- Ubuntu

build: off

stack: python 3

environment:
PY_DIR: C:\Python37-x64

clone_depth: 3

build: off

init:
- cmd: set PATH=%PY_DIR%;%PY_DIR%\Scripts;%PATH%

install:
- pip install -e .[tests]

test_script:
- pytest -sv
install: pip install -e .[tests]

test_script: pytest -rsv

20 changes: 10 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ git:
quiet: true

python:
- 3.6
- 3.7
- 3.6
- 3.7

os:
- linux
- linux

install: pip install -e .[tests]

script:
- pytest -sv
- flake8
- mypy . --ignore-missing-imports
- pytest -rsv
- flake8
- mypy . --ignore-missing-imports

after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.6* ]]; then
pytest --cov;
coveralls;
fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.6* ]]; then
pytest --cov;
coveralls;
fi

23 changes: 12 additions & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ classifiers =
Operating System :: OS Independent
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Topic :: Scientific/Engineering :: GIS
Topic :: Utilities
license_file = LICENSE
long_description = file: README.md
long_description_content_type = text/markdown

[options]
python_requires = >= 3.6
setup_requires =
setup_requires =
setuptools >= 38.6
pip >= 10
twine >= 1.11
Expand All @@ -34,7 +34,7 @@ install_requires =
python-dateutil

[options.extras_require]
tests =
tests =
pytest
pytest-cov
coveralls
Expand All @@ -59,17 +59,18 @@ omit =
/home/travis/virtualenv/*
*/site-packages/*
*/bin/*
*/build/*

[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
RuntimeError
NotImplementedError
ImportError
KeyError
FileNotFoundError
CalledProcessError
except RuntimeError
except NotImplementedError
except ImportError
except FileNotFoundError
except CalledProcessError
logging.warning
ValueError
TypeError
logging.error
logging.critical
if __name__ == .__main__.:

0 comments on commit c7039da

Please sign in to comment.