diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-10-24 10:04:37 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-10-24 10:04:37 -0400 |
commit | e8fa0157a27c375b4f8c98d0600d302e7cad16dc (patch) | |
tree | ecadcd7b1f0570c1b27fea8bd6bfb8caa242b81e /azure-pipelines.yml | |
parent | 2cc1b90eba33fae1bf8d06a49bb9f64b662569ad (diff) | |
download | cmd2-git-e8fa0157a27c375b4f8c98d0600d302e7cad16dc.tar.gz |
Attempt to use tox for VSTS builds
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 374c6b3b..fbb9eb62 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,12 +16,16 @@ jobs: matrix: Python34: python.version: '3.4' + TOXENV: 'py34' Python35: python.version: '3.5' + TOXENV: 'py35' Python36: python.version: '3.6' + TOXENV: 'py36' Python37: python.version: '3.7' + TOXENV: 'py37' # Increase the maxParallel value to simultaneously run the job for all versions in the matrix (max 10 for free open-source) maxParallel: 4 @@ -34,7 +38,7 @@ jobs: # Install dependencies - install specific PyPI packages with pip, including cmd2 dependencies - script: | - python -m pip install --upgrade pip && pip3 install --upgrade setuptools gnureadline + python -m pip install --upgrade pip && pip3 install --upgrade setuptools gnureadline tox pip install -e . displayName: 'Upgrade pip and setuptools' continueOnError: false @@ -43,8 +47,7 @@ jobs: # Test - test with pytest, collect coverage metrics with pytest-cov, and publish these metrics to codecov.io - script: | - pip install pytest pytest-cov pytest-mock codecov mock - py.test tests --cov --junitxml=junit/test-results.xml && codecov + tox -e $(TOXENV) displayName: 'Run tests and code coverage' continueOnError: false |