This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
/
tox.ini
43 lines (42 loc) · 1.43 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[tox]
envlist = py{27,36,37,38,39}-ansible{2.9, 2.10, 3.0}-{release, source, packages}-{static, dynamic, upgrade}
# This repo isn't a Python project, so it makes no sense to install an sdist
# into the virtualenvs tox creates.
skipsdist = true
[testenv]
sitepackages = true
deps =
ansible2.9: ansible~=2.9.0
ansible2.10: ansible~=2.10.0
ansible3: ansible~=3.0.0
ansible-lint[community,yamllint]
docker
molecule
py36: molecule-docker
py37: molecule-docker
py38: molecule-docker
py39: molecule-docker
# molecule dep that is incompatible with python 2 as of 1.13.0 & 1.13.1
sh < 1.13 ; python_version < "3"
setenv =
release: TEST_1 = release
source: TEST_1 = source
packages: TEST_1 = packages
static: TEST_2 = static
dynamic: TEST_2 = dynamic
upgrade: TEST_2 = upgrade
passenv =
PY_COLORS
ANSIBLE_FORCE_COLOR
# For reference on the commands, see:
# `molecule matrix test`
# We removed cleanup from the middle it breaks later tasks.
# We removed cleanup from the end because it complicate Travis
# debugging.
commands =
# molecule for python 2 does not support installing collections
ansible-galaxy collection install --requirements-file requirements.yml
# LIMITATION: There is no output while the idempotence test runs.
# NOTE: --debug would only provide output for seconds at the beginning
# and end.
molecule test --scenario-name {env:TEST_1}-{env:TEST_2}