-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
31 lines (28 loc) · 854 Bytes
/
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
[tox]
skip_install = True
skipsdist = True
envlist = openbsd60,xenial,trusty,precise,stretch,jessie,wheezy
[testenv]
envdir = {toxinidir}/.tox/molecule
deps = -rtests/requirements.txt
passenv = HOME VBOX* ANSIBLE_*
whitelist_externals =
sh
commands =
sh -c "ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles"
molecule test --platform {envname}
[testenv:pre-commit]
deps =
{[testenv]deps}
pre-commit
passenv = {[testenv]passenv}
whitelist_externals = {[testenv]whitelist_externals}
commands =
sh -c "ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles"
molecule dependency
pre-commit run --all-files
[testenv:import]
envdir = {[testenv]envdir}
deps = {[testenv]deps}
passenv = {[testenv]passenv}
commands = ansible-galaxy import -v