Skip to content
Snippets Groups Projects
Select Git revision
  • 8a20e7580bf2925826c3a8da315581abdc58768b
  • main default
  • v0.1.2
  • v0.1.1
  • v0.1.0
5 results

README.rst

Blame
    • nimrod's avatar
      8a20e758
      Pre-commit hook. · 8a20e758
      nimrod authored
      So now it can be used as a pre-commit hook, validating and nicely
      formatting YAML files. Hurray!
      8a20e758
      History
      Pre-commit hook.
      nimrod authored
      So now it can be used as a pre-commit hook, validating and nicely
      formatting YAML files. Hurray!
    tox.ini 735 B
    [tox]
    skip_install = True
    skipsdist = True
    envlist = openbsd60,openbsd59,xenial,trusty,precise,stretch,jessie,wheezy
    
    [testenv]
    envdir = {toxinidir}/.tox
    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]
    envdir = {toxinidir}/.tox
    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 dependency
        pre-commit run --all-files