summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-03-10 13:26:05 -0400
committerGitHub <noreply@github.com>2020-03-10 11:26:05 -0600
commit986f37b017134ced5d9dd38b420350916297002b (patch)
tree59fe191bbc8641a14d60f37499412912ba824443 /.travis.yml
parent71af48df3514ca831c90b77dc71ba0a121dec401 (diff)
downloadvyos-cloud-init-986f37b017134ced5d9dd38b420350916297002b.tar.gz
vyos-cloud-init-986f37b017134ced5d9dd38b420350916297002b.zip
cloudinit: move to pytest for running tests (#211)
As the nose docs[0] themselves note, it has been in maintenance mode for the past several years. pytest is an actively developed, featureful and popular alternative that the nose docs themselves recommend. See [1] for more details about the thinking here. (This PR also removes stale tox definitions, instead of modifying them.) [0] https://nose.readthedocs.io/en/latest/ [1] https://lists.launchpad.net/cloud-init/msg00245.html
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index d2651c0b..1cde317a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,13 +16,13 @@ matrix:
- python: 3.6
env:
TOXENV=py3
- NOSE_VERBOSE=2 # List all tests run by nose
+ PYTEST_ADDOPTS=-v # List all tests run by pytest
- install:
- git fetch --unshallow
- sudo apt-get build-dep -y cloud-init
- sudo apt-get install -y --install-recommends sbuild ubuntu-dev-tools fakeroot tox
# These are build deps but not pulled in by the build-dep call above
- - sudo apt-get install -y --install-recommends dh-systemd python3-coverage python3-contextlib2
+ - sudo apt-get install -y --install-recommends dh-systemd python3-coverage python3-contextlib2 python3-pytest python3-pytest-cov
- pip install .
- pip install tox
# bionic has lxd from deb installed, remove it first to ensure
@@ -46,7 +46,7 @@ matrix:
- python: 3.5
env:
TOXENV=xenial
- NOSE_VERBOSE=2 # List all tests run by nose
+ PYTEST_ADDOPTS=-v # List all tests run by pytest
# Travis doesn't support Python 3.4 on bionic, so use xenial
dist: xenial
- python: 3.6