remove tox and test only with latest stable ansible release

This commit is contained in:
Robert Kaussow 2020-06-03 13:19:07 +02:00
parent 8e5f067189
commit 4b8628f87c
3 changed files with 31 additions and 36 deletions

View File

@ -1,12 +1,15 @@
local PythonVersion(pyversion='2.7') = { local PythonVersion(pyversion='2.7') = {
name: 'python' + std.strReplace(pyversion, '.', '') + '-ansible', name: 'python' + std.strReplace(pyversion, '.', '') + '-pytest',
image: 'python:' + pyversion, image: 'python:' + pyversion,
environment: { environment: {
PY_COLORS: 1, PY_COLORS: 1,
}, },
commands: [ commands: [
'pip install tox -qq', 'pip install -r dev-requirements.txt -qq',
'tox -e $(tox -l | grep py' + std.strReplace(pyversion, '.', '') + " | xargs | sed 's/ /,/g') -q", 'pip install -qq .',
'pytest ansiblelater --cov=ansiblelater --no-cov-on-fail',
'ansible-later --help',
'ansible-later --version',
], ],
depends_on: [ depends_on: [
'clone', 'clone',
@ -60,7 +63,6 @@ local PipelineTest = {
}, },
commands: [ commands: [
'pip install codecov -qq', 'pip install codecov -qq',
'coverage combine .tox/py*/.coverage',
'codecov --required -X gcov', 'codecov --required -X gcov',
], ],
depends_on: [ depends_on: [

View File

@ -31,41 +31,53 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: python35-ansible - name: python35-pytest
image: python:3.5 image: python:3.5
commands: commands:
- pip install tox -qq - pip install -r dev-requirements.txt -qq
- tox -e $(tox -l | grep py35 | xargs | sed 's/ /,/g') -q - pip install -qq .
- pytest ansiblelater --cov=ansiblelater --no-cov-on-fail
- ansible-later --help
- ansible-later --version
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
depends_on: depends_on:
- clone - clone
- name: python36-ansible - name: python36-pytest
image: python:3.6 image: python:3.6
commands: commands:
- pip install tox -qq - pip install -r dev-requirements.txt -qq
- tox -e $(tox -l | grep py36 | xargs | sed 's/ /,/g') -q - pip install -qq .
- pytest ansiblelater --cov=ansiblelater --no-cov-on-fail
- ansible-later --help
- ansible-later --version
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
depends_on: depends_on:
- clone - clone
- name: python37-ansible - name: python37-pytest
image: python:3.7 image: python:3.7
commands: commands:
- pip install tox -qq - pip install -r dev-requirements.txt -qq
- tox -e $(tox -l | grep py37 | xargs | sed 's/ /,/g') -q - pip install -qq .
- pytest ansiblelater --cov=ansiblelater --no-cov-on-fail
- ansible-later --help
- ansible-later --version
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
depends_on: depends_on:
- clone - clone
- name: python38-ansible - name: python38-pytest
image: python:3.8 image: python:3.8
commands: commands:
- pip install tox -qq - pip install -r dev-requirements.txt -qq
- tox -e $(tox -l | grep py38 | xargs | sed 's/ /,/g') -q - pip install -qq .
- pytest ansiblelater --cov=ansiblelater --no-cov-on-fail
- ansible-later --help
- ansible-later --version
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
depends_on: depends_on:
@ -75,7 +87,6 @@ steps:
image: python:3.8 image: python:3.8
commands: commands:
- pip install codecov -qq - pip install codecov -qq
- coverage combine .tox/py*/.coverage
- codecov --required -X gcov - codecov --required -X gcov
environment: environment:
CODECOV_TOKEN: CODECOV_TOKEN:
@ -484,6 +495,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: e24f32f31953d936d86eb3e75e9a76521ac5a6066e98ce0ad66c0c79286ecd7e hmac: 1aa29dfec526c097fdefe018bd59133a5fe2d0579cb4cb94f888daca8243e6ca
... ...

18
tox.ini
View File

@ -1,18 +0,0 @@
[tox]
minversion = 3.7.0
envlist =
py{35,36,37,38}-ansible{latest,devel}
isolated_build = True
[testenv]
usedevelop = True
passenv = PY_COLORS
setenv = COVERAGE_FILE={envdir}/.coverage
deps =
-rdev-requirements.txt
ansiblelatest: ansible
ansibledevel: git+https://github.com/ansible/ansible.git
commands =
ansible-later --help
pytest ansiblelater --cov={toxinidir}/ansiblelater --no-cov-on-fail