<commit_before># Tasks required to have Koha QA Tools working for the vagrant user
- name: Install Koha QA tools (dependencies)
  sudo_user: root
  apt: pkg={{ item }} state=latest
  with_items:
    - libfile-chdir-perl
    - libgit-repository-perl
    - liblist-compare-perl
    - libmoo-perl
    - libperl-critic-perl
    - libtest-perl-critic-perl
    - libtest-perl-critic-progressive-perl
    - libsmart-comments-perl

- name: Install Koha QA tools (not in wheezy)
  sudo_user: root
  apt: pkg={{ item }} state=latest
  with_items:
    - codespell
  when: ansible_distribution_release != 'wheezy'

- name: Install testing dependencies (cpanm)
  sudo_user: root
  cpanm: name={{ item }}
  with_items:
    - HTTPD::Bench::ApacheBench
    - Test::DBIx::Class

- name: Clone Koha QA tools
  sudo_user: vagrant
  git: repo={{ koha_qa_repo }}  dest={{ koha_qa_dir }} version={{ koha_qa_version }} accept_hostkey=yes<commit_msg>Add missing dep for newer Test::DBIx::Class<commit_after># Tasks required to have Koha QA Tools working for the vagrant user
- name: Install Koha QA tools (dependencies)
  sudo_user: root
  apt: pkg={{ item }} state=latest
  with_items:
    - libfile-chdir-perl
    - libgit-repository-perl
    - liblist-compare-perl
    - libmoo-perl
    - libperl-critic-perl
    - libtest-perl-critic-perl
    - libtest-perl-critic-progressive-perl
    - libsmart-comments-perl
    - libdatetimex-easy-perl

- name: Install Koha QA tools (not in wheezy)
  sudo_user: root
  apt: pkg={{ item }} state=latest
  with_items:
    - codespell
  when: ansible_distribution_release != 'wheezy'

- name: Install testing dependencies (cpanm)
  sudo_user: root
  cpanm: name={{ item }}
  with_items:
    - HTTPD::Bench::ApacheBench
    - Test::DBIx::Class

- name: Clone Koha QA tools
  sudo_user: vagrant
  git: repo={{ koha_qa_repo }}  dest={{ koha_qa_dir }} version={{ koha_qa_version }} accept_hostkey=yes
{'fraction_non_alphanumeric': 0.11250654107796965, 'fraction_numerical': 0.0, 'mean_word_length': 3.456876456876457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6593940', 'n_tokens_mistral': 726, 'n_tokens_neox': 685, 'n_words': 167}