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

- Only include playbooks in pre-commit.

- Add CI using Tox and TravisCI.
parent 3d3f9c69
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,9 @@ ...@@ -9,8 +9,9 @@
sha: v0.6.0 sha: v0.6.0
hooks: hooks:
- id: ansible-syntax-check - id: ansible-syntax-check
files: \.yml$ files: &playbooks desktop|dropbox|pkgs|skype|workstation
- repo: https://github.com/willthames/ansible-lint - repo: https://github.com/willthames/ansible-lint
sha: v3.4.13 sha: v3.4.13
hooks: hooks:
- id: ansible-lint - id: ansible-lint
files: *playbooks
---
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
[tox]
skip_install = True
skipsdist = True
[testenv]
deps = pre-commit
commands = 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