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
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -9,14 +9,14 @@ env:
        - VBOX_MEMORY=2048
    matrix:
        - TOXENV=pre-commit
        - tox_switches="--platform openbsd60"
        - &openbsd59 tox_switches="--platform openbsd59"
        - tox_switches="--platform xenial"
        - tox_switches="--platform trusty"
        - tox_switches="--platform precise"
        - &stretch tox_switches="--platform stretch"
        - tox_switches="--platform jessie"
        - tox_switches="--platform wheezy"
        - TOXENV=openbsd60
        - &openbsd59 TOXENV=openbsd59
        - TOXENV=xenial
        - TOXENV=trusty
        - TOXENV=precise
        - &stretch TOXENV=stretch
        - TOXENV=jessie
        - TOXENV=wheezy
matrix:
    fast_finish: True
    allow_failures:
@@ -36,7 +36,7 @@ install:
  - pip install tox-travis | cat

script:
  - travis_wait 45 tox -- $tox_switches
  - travis_wait 45 tox

notifications:
  webhooks: https://galaxy.ansible.com/api/v1/notifications/
+0 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@ ansible==2.3.0.0
testinfra==1.5.5
molecule==1.23.2
ansible-lint==3.4.12
pre-commit==0.13.6
python-vagrant==0.5.14
netaddr==0.7.19
passlib==1.7.1
+9 −7
Original line number Diff line number Diff line
[tox]
skip_install = True
skipsdist = True
envlist = molecule
envlist = openbsd60,openbsd59,xenial,trusty,precise,stretch,jessie,wheezy

[testenv:pre-commit]
[testenv]
envdir = {toxinidir}/.tox
deps = -rtests/requirements.txt
passenv = HOME VBOX* ANSIBLE_*
@@ -11,15 +11,17 @@ whitelist_externals =
    sh
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
    molecule test --platform {envname}

[testenv]
[testenv:pre-commit]
envdir = {toxinidir}/.tox
deps = -rtests/requirements.txt
deps =
    -rtests/requirements.txt
    pre-commit
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 {posargs}
    molecule dependency
    pre-commit run --all-files