Skip to content

Commit

Permalink
added coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mristin committed Aug 21, 2018
1 parent 5a17cb9 commit eba8d90
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ venv3
*.egg-info
.tox
dist/
.coverage
.eggs
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ addons:
openssh-server
install:
- pip3 install -e .[test]
- pip3 install coveralls
- ssh-keygen -t rsa -N "" -f $HOME/test_id_rsa
- "echo Test ID rsa is at: $HOME/test_id_rsa"
- "echo Authorized keys is at: $HOME/.ssh/authorized_keys"
Expand All @@ -18,4 +19,6 @@ script:
- cat $HOME/.ssh/authorized_keys
- ssh -v -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $HOME/test_id_rsa $USER@127.0.0.1 -- echo hi
- python3 tests/test_spurplus.py
- python3 tests/live_test.py
- python3 tests/test_live.py
- coverage run --source spurplus -m unittest discover tests
- coveralls
2 changes: 1 addition & 1 deletion precommit.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def main() -> int:
success = False

success = subprocess.call(['python3', '-m', 'unittest', 'discover', (py_dir / 'tests').as_posix()]) == 0 and success
success = subprocess.call(['python3', (py_dir / 'tests' / 'live_test.py').as_posix()]) == 0 and success
success = subprocess.call(['python3', (py_dir / 'tests' / 'test_live.py').as_posix()]) == 0 and success

if not success:
print("One or more checks failed.")
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
packages=find_packages(exclude=['tests']),
install_requires=['spur==0.3.20', 'typing_extensions>=3.6.2.1'],
extras_require={
'dev': ['mypy==0.570', 'pylint==1.8.2', 'yapf==0.20.2', 'tox>=3.0.0'],
'test': ['tox>=3.0.0', 'temppathlib>=1.0.3,<2']
'dev': ['mypy==0.570', 'pylint==1.8.2', 'yapf==0.20.2', 'tox>=3.0.0', 'temppathlib>=1.0.3,<2',
'coverage>=4.5.1,<5'],
'test': ['tox>=3.0.0', 'temppathlib>=1.0.3,<2', 'coverage>=4.5.1,<5']
},
py_modules=['spurplus'],
package_data={"spurplus": ["py.typed"]})
File renamed without changes.

0 comments on commit eba8d90

Please sign in to comment.