diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed81a75fbac4ba36c3681196be02eb4df486a113..68f06826e164ea70ed37d3eaf533f9954ed8f961 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,8 +9,9 @@ sha: v0.6.0 hooks: - id: ansible-syntax-check - files: \.yml$ + files: &playbooks desktop|dropbox|pkgs|skype|workstation - repo: https://github.com/willthames/ansible-lint sha: v3.4.13 hooks: - id: ansible-lint + files: *playbooks diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..533c96ba4a863092a388d22303997b6220e4d4bf --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +--- +language: python +python: "3.6" +dist: trusty +sudo: false +group: beta +cache: + - pip + - directories: + - $HOME/.pre-commit + +install: + - pip install tox | cat + +script: + - tox + +notifications: + on_failure: never + email: false diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000000000000000000000000000000000000..0699392229248d1a89b473e1a17b4c7b96544107 --- /dev/null +++ b/tox.ini @@ -0,0 +1,7 @@ +[tox] +skip_install = True +skipsdist = True + +[testenv] +deps = pre-commit +commands = pre-commit run --all-files