Skip to content

Commit

Permalink
CI template
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Aug 15, 2018
1 parent eab88c9 commit 5553e31
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
12 changes: 7 additions & 5 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ image:
stack: python 3

environment:
PY_DIR: C:\Python36-x64
PY_DIR: C:\Python37-x64

clone_depth: 3

before_build:
build: off

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

build_script: pip install -e .[tests]
after_build: 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 @@ -9,11 +9,11 @@ git:
quiet: true

python:
- 3.6
- 3.7
- 3.6
- 3.7

os:
- linux
- linux
# - osx

#env:
Expand All @@ -39,13 +39,13 @@ os:
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 --cov-config=setup.cfg;
coveralls;
fi

22 changes: 11 additions & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = 1.0.8
author = Michael Hirsch, Ph.D.
url = https://github.com/scivision/findssh
description = find open servers on your IPv4 subnet, e.g. SSH
keywords =
keywords =
port-scan
ssh
classifiers =
Expand All @@ -23,7 +23,7 @@ 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 @@ -32,7 +32,7 @@ packages = find:
install_requires =

[options.extras_require]
tests =
tests =
pytest
pytest-cov
coveralls
Expand All @@ -59,12 +59,12 @@ omit =
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 5553e31

Please sign in to comment.