Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test and verification setup #13

Merged
merged 2 commits into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.idea
.tox
venv/
__pycache__/*
venv/
docs/_build/*
.coverage
*.egg-info/
Expand Down
27 changes: 13 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
language:
- python
os:
- linux
python:
- '3.7'
- '3.8'
- python
jobs:
include:
- python: '3.7'
env: PYENV=py37
os: linux
- python: '3.8'
env: PYENV=py38
os: linux
install:
- pip install --upgrade pip
- pip install setuptools
- pip install --upgrade setuptools
- pip install coveralls
- pip install -e .
- pip list
- pip install --upgrade pip
- pip install -r test-requirements.txt
- pip install --upgrade setuptools
script:
- python setup.py test
- coverage run --source="crc" setup.py test
- tox -e $PYENV
after_success: coveralls
deploy:
provider: pypi
Expand Down
14 changes: 4 additions & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@ os: Windows Server 2012

environment:
matrix:
- python_version: "C:\\Python37"
- python_version: "C:\\Python37-x64"
- python_version: "C:\\Python38"
- python_version: "C:\\Python38-x64"
- TOXENV: py37
- TOXENV: py38

install:
- "SET PATH=%python_version%;%python_version%\\Scripts;%PATH%"
- "pip install setuptools"
- "pip install --upgrade setuptools"
- "pip install -e ."
- "pip list"
- C:\Python37\python -m pip install -U -r test-requirements.txt

test_script:
- "python setup.py test"
- C:\Python37\scripts\tox

build: off
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def readme():
],
url='https://github.com/Nicoretti/crc',
license='BSD',
python_requires='>=3.7',
author='Nicola Coretti',
author_email='nico.coretti@gmail.com',
description='Library and CLI to calculate and verify all kinds of CRC checksums.',
Expand Down
3 changes: 3 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
setuptools
coveralls
tox
10 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[tox]
envlist = py{37, 38, 39}

[testenv]
deps =
-rtest-requirements.txt

commands =
{envpython} setup.py test
coverage run --source="crc" setup.py test