# CircleCI is used only for Ansible-Lint and Ansible Syntax checks
dependencies:
  override:
    - |
      sudo apt-add-repository -y ppa:ansible/ansible
      sudo apt-get update
      sudo apt-get install -y ansible
    - sudo pip install ansible-lint
  post:
    - ansible-lint --version

test:
  override:
    # Ansible YAML syntax-check
    - ansible-playbook --syntax-check:
        files:
          - stackstorm.yml
    # Ansible-lint check
    # https://github.com/willthames/ansible-lint
    - ansible-lint -v:
        files:
          - roles/*/*/*.yaml
          - roles/*/*/*.yml
          - stackstorm.yml

Include CircleCI integration which will run ansible-lint checks only
Include CircleCI integration which will run ansible-lint checks only
