<commit_before>sudo: false
language: ruby
cache:
  bundler: true
  directories:
    - $(npm root)
    - ~/bin
rvm:
  - '1.8.7-p371'
  - '1.9.3-p551'
  - '2.0.0-p648'
  - '2.1.10'
  - '2.2.9'
  - '2.3.6'
  - '2.4.3'
  - 'jruby-9.0.5.0'
  - 'jruby-9.1.9.0'
script:
  - bundle exec image_optim --info
  - bundle exec rspec
before_install:
  - gem update --system
  - gem update bundler
  - nvm install stable
  - mkdir -p ~/bin
  - command -v svgo || npm install -g svgo
  - command -v pngout || curl -L "http://static.jonof.id.au/dl/kenutils/pngout-20130221-linux.tar.gz" | tar -xz -C ~/bin --strip-components 2 --wildcards '*/x86_64/pngout'
matrix:
  include:
    - env: CODECLIMATE=✓
      rvm: '2.4.3'
      after_success: bundle exec codeclimate-test-reporter
    - env: RUBOCOP=✓
      rvm: '2.4.3'
      script: bundle exec rubocop
      before_install:
    - env: CHECK_RUBIES=✓
      rvm: '2.4.3'
      script: bundle exec travis_check_rubies
      before_install:
addons:
  code_climate:
    repo_token:
      secure: FDikT3JnOJHOAFSaKwVPB1VOphU0sSzAnzQ+YjSt9XFE+9uFQHth/j4rFoVoqALhCj+47trv6spwkbcSjGCVzm+87OI80GkLCCzNjDOz2W4sP9JWItVgS1VoWW+ioPxpLgpguTb3wutwKOUMEAf+40EX657ZiHumM7nNHrF+RCU=<commit_msg>travis: explicitly install bundler if it can’t run<commit_after>sudo: false
language: ruby
cache:
  bundler: true
  directories:
    - $(npm root)
    - ~/bin
rvm:
  - '1.8.7-p371'
  - '1.9.3-p551'
  - '2.0.0-p648'
  - '2.1.10'
  - '2.2.9'
  - '2.3.6'
  - '2.4.3'
  - 'jruby-9.0.5.0'
  - 'jruby-9.1.9.0'
script:
  - bundle exec image_optim --info
  - bundle exec rspec
before_install:
  - gem update --system
  - if bundle --version; then gem update bundler; else gem install bundler; fi
  - nvm install stable
  - mkdir -p ~/bin
  - command -v svgo || npm install -g svgo
  - command -v pngout || curl -L "http://static.jonof.id.au/dl/kenutils/pngout-20130221-linux.tar.gz" | tar -xz -C ~/bin --strip-components 2 --wildcards '*/x86_64/pngout'
matrix:
  include:
    - env: CODECLIMATE=✓
      rvm: '2.4.3'
      after_success: bundle exec codeclimate-test-reporter
    - env: RUBOCOP=✓
      rvm: '2.4.3'
      script: bundle exec rubocop
      before_install:
    - env: CHECK_RUBIES=✓
      rvm: '2.4.3'
      script: bundle exec travis_check_rubies
      before_install:
addons:
  code_climate:
    repo_token:
      secure: <KEY>
{'fraction_non_alphanumeric': 0.14675767918088736, 'fraction_numerical': 0.06228668941979522, 'mean_word_length': 2.4689349112426036, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '3972658', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1049, 'n_words': 207}