<commit_before>os: linux
language: perl
perl:
  - blead
  - dev
  - 5.26
  - 5.24
  - 5.22
  - 5.20
  - 5.18
  - 5.14

matrix:
  include:
    - os: osx
      osx_image: xcode9.4
      language: generic
      perl: 5.24
  allow_failures:
    - perl: "blead"

before_install:
  - git clone --depth 1 https://github.com/sstephenson/bats.git
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      brew update;
      brew install shellcheck perl cpanminus;
      mkdir -p ~/perl5;
    fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      eval $(curl https://travis-perl.github.io/init) --perl;

      sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-backports restricted main universe";
      sudo apt-get -y update;
      sudo apt-get -y install shellcheck;
    fi
install:
  - cpanm --quiet --notest --local-lib=~/perl5 local::lib
  - eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
  - cpanm --quiet --notest Test::Perl::Critic Perl::Critic::Freenode
script:
  - perlcritic -1 -q --theme freenode diff-so-fancy
  - ./bats/bin/bats test/*.bats
  - shellcheck *.sh<commit_msg>Use travis homebrew addon to install necessary packages<commit_after>os: linux
language: perl
perl:
  - blead
  - dev
  - 5.26
  - 5.24
  - 5.22
  - 5.20
  - 5.18
  - 5.14

matrix:
  include:
    - os: osx
      osx_image: xcode9.4
      language: generic
      perl: 5.24
  allow_failures:
    - perl: "blead"

addons:
  homebrew:
    packages:
      - perl
      - shellcheck
      - cpanminus

before_install:
  - git clone --depth 1 https://github.com/sstephenson/bats.git
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      mkdir -p ~/perl5;
    fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      eval $(curl https://travis-perl.github.io/init) --perl;

      sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-backports restricted main universe";
      sudo apt-get -y update;
      sudo apt-get -y install shellcheck;
    fi
install:
  - cpanm --quiet --notest --local-lib=~/perl5 local::lib
  - eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
  - cpanm --quiet --notest Test::Perl::Critic Perl::Critic::Freenode
script:
  - perlcritic -1 -q --theme freenode diff-so-fancy
  - ./bats/bin/bats test/*.bats
  - shellcheck *.sh
{'fraction_non_alphanumeric': 0.1511111111111111, 'fraction_numerical': 0.025777777777777778, 'mean_word_length': 2.2813411078717203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1813234', 'n_tokens_mistral': 950, 'n_tokens_neox': 863, 'n_words': 205}