Skip to content

Commit 053e742

Browse files
Add basic testing structure
In addition to the requirements to run a test suite, this change starts the process of migrating to a structure where we have a callable (`pkg-update-deps`) that is actually a symlink to a normal python file (`pkg_update_deps.py`). This is done so that we can normally import the python file in our unit tests, as well as potentially share some functionality between the various callables.
1 parent c71ce70 commit 053e742

File tree

9 files changed

+472
-383
lines changed

9 files changed

+472
-383
lines changed

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
omit=.tox/*
3+
include=./*

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.tox
2+
*.pyc
3+
build/
4+
dist/
5+
.local
6+
.coverage
7+
.vscode/
8+
# Sphinx
9+
doc/build
10+
coverage.xml

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
dist: bionic
2+
language: python
3+
install:
4+
- sudo apt-get install dh-python
5+
- pip install tox-travis
6+
- pip install codecov
7+
matrix:
8+
include:
9+
- python: 3.6
10+
env: ENV=pep8,py3
11+
- python: 3.7
12+
env: ENV=pep8,py3
13+
- python: 3.8
14+
env: ENV=pep8,py3y3
15+
script: tox -c tox.ini -e $ENV
16+
after_success:
17+
- codecov --verbose --gcov-glob unit_tests/*

0 commit comments

Comments
 (0)