Skip to content
Snippets Groups Projects
Commit 9d23c682 authored by nimrod's avatar nimrod
Browse files

- Revert back to specified Tox testenv for each platform and specific one for pre-commit.

parent 3d4ac03a
No related branches found
No related tags found
No related merge requests found
...@@ -9,14 +9,14 @@ env: ...@@ -9,14 +9,14 @@ env:
- VBOX_MEMORY=2048 - VBOX_MEMORY=2048
matrix: matrix:
- TOXENV=pre-commit - TOXENV=pre-commit
- tox_switches="--platform openbsd60" - TOXENV=openbsd60
- &openbsd59 tox_switches="--platform openbsd59" - &openbsd59 TOXENV=openbsd59
- tox_switches="--platform xenial" - TOXENV=xenial
- tox_switches="--platform trusty" - TOXENV=trusty
- tox_switches="--platform precise" - TOXENV=precise
- &stretch tox_switches="--platform stretch" - &stretch TOXENV=stretch
- tox_switches="--platform jessie" - TOXENV=jessie
- tox_switches="--platform wheezy" - TOXENV=wheezy
matrix: matrix:
fast_finish: True fast_finish: True
allow_failures: allow_failures:
...@@ -36,7 +36,7 @@ install: ...@@ -36,7 +36,7 @@ install:
- pip install tox-travis | cat - pip install tox-travis | cat
script: script:
- travis_wait 45 tox -- $tox_switches - travis_wait 45 tox
notifications: notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/ webhooks: https://galaxy.ansible.com/api/v1/notifications/
......
...@@ -2,7 +2,6 @@ ansible==2.3.0.0 ...@@ -2,7 +2,6 @@ ansible==2.3.0.0
testinfra==1.5.5 testinfra==1.5.5
molecule==1.23.2 molecule==1.23.2
ansible-lint==3.4.12 ansible-lint==3.4.12
pre-commit==0.13.6
python-vagrant==0.5.14 python-vagrant==0.5.14
netaddr==0.7.19 netaddr==0.7.19
passlib==1.7.1 passlib==1.7.1
......
[tox] [tox]
skip_install = True skip_install = True
skipsdist = True skipsdist = True
envlist = molecule envlist = openbsd60,openbsd59,xenial,trusty,precise,stretch,jessie,wheezy
[testenv:pre-commit] [testenv]
envdir = {toxinidir}/.tox envdir = {toxinidir}/.tox
deps = -rtests/requirements.txt deps = -rtests/requirements.txt
passenv = HOME VBOX* ANSIBLE_* passenv = HOME VBOX* ANSIBLE_*
...@@ -11,15 +11,17 @@ whitelist_externals = ...@@ -11,15 +11,17 @@ whitelist_externals =
sh sh
commands = commands =
sh -c "ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles" sh -c "ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles"
molecule dependency molecule test --platform {envname}
pre-commit run --all-files
[testenv] [testenv:pre-commit]
envdir = {toxinidir}/.tox envdir = {toxinidir}/.tox
deps = -rtests/requirements.txt deps =
-rtests/requirements.txt
pre-commit
passenv = HOME VBOX* ANSIBLE_* passenv = HOME VBOX* ANSIBLE_*
whitelist_externals = whitelist_externals =
sh sh
commands = commands =
sh -c "ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles" sh -c "ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles"
molecule test {posargs} molecule dependency
pre-commit run --all-files
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment