Run unit tests for all Python versions in one CI node (#133)

* Run unit tests for all Python versions in one CI node.

* Linting.
pull/134/head
Felix Fontein 2020-10-29 15:03:35 +01:00 committed by GitHub
parent 92bc17463a
commit 7559e912f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 17 deletions

View File

@ -11,13 +11,7 @@ matrix:
- env: T=devel/sanity/1 - env: T=devel/sanity/1
- env: T=devel/sanity/extra - env: T=devel/sanity/extra
- env: T=devel/units/2.6/1 - env: T=devel/units/1
- env: T=devel/units/2.7/1
- env: T=devel/units/3.5/1
- env: T=devel/units/3.6/1
- env: T=devel/units/3.7/1
- env: T=devel/units/3.8/1
- env: T=devel/units/3.9/1
- env: T=devel/osx/10.11/1 - env: T=devel/osx/10.11/1
- env: T=devel/rhel/7.8/1 - env: T=devel/rhel/7.8/1
@ -45,16 +39,14 @@ matrix:
# For Ansible 2.10, use a combination of different targets # For Ansible 2.10, use a combination of different targets
- env: T=2.10/sanity/1 - env: T=2.10/sanity/1
- env: T=2.10/units/2.7/1 - env: T=2.10/units/1
- env: T=2.10/units/3.8/1
- env: T=2.10/rhel/7.8/1 - env: T=2.10/rhel/7.8/1
- env: T=2.10/linux/ubuntu1804/1 - env: T=2.10/linux/ubuntu1804/1
- env: T=2.10/cloud/3.6/1 - env: T=2.10/cloud/3.6/1
# For Ansible 2.9, use a combination of different targets # For Ansible 2.9, use a combination of different targets
- env: T=2.9/sanity/1 - env: T=2.9/sanity/1
- env: T=2.9/units/2.7/1 - env: T=2.9/units/1
- env: T=2.9/units/3.8/1
- env: T=2.9/rhel/7.8/1 - env: T=2.9/rhel/7.8/1
- env: T=2.9/linux/ubuntu1804/1 - env: T=2.9/linux/ubuntu1804/1
- env: T=2.9/cloud/3.5/1 - env: T=2.9/cloud/3.5/1

View File

@ -2,11 +2,6 @@
set -o pipefail -eux set -o pipefail -eux
declare -a args
IFS='/:' read -ra args <<< "$1"
version="${args[1]}"
if [[ "${COVERAGE:-}" == "--coverage" ]]; then if [[ "${COVERAGE:-}" == "--coverage" ]]; then
timeout=90 timeout=90
else else
@ -16,4 +11,4 @@ fi
ansible-test env --timeout "${timeout}" --color -v ansible-test env --timeout "${timeout}" --color -v
# shellcheck disable=SC2086 # shellcheck disable=SC2086
ansible-test units --color -v --docker default --python "${version}" ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \ ansible-test units --color -v --docker default ${COVERAGE:+"$COVERAGE"} ${CHANGED:+"$CHANGED"} \