<commit_before>sudo: false
language: ruby
cache:
  bundler: true
  directories:
  - $(npm root)
  - ~/bin
rvm:
  - '1.8'
  - '1.9'
  - '2.0'
  - '2.1'
  - '2.2'
  - jruby-19mode
  - ree
script:
  if [ -n "$RUBOCOP" ]; then
    bundle exec rubocop
  ; elif [ -n "$RAILS_VERSION" ]; then
    bundle exec image_optim --info
    && bundle exec rspec spec/image_optim/railtie_spec.rb
  ; else
    bundle exec image_optim --info
    && bundle exec rspec
  ; fi
before_install:
  if [ -z "$RUBOCOP" ]; then
    command -v svgo || npm install svgo
    ;
    command -v pngout || (
      mkdir -p ~/bin
      && 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'
    )
  ; fi
matrix:
  fast_finish: true
  include:
    - env: RAILS_VERSION='~> 3.2' SPROCKETS_VERSION='~> 2.0'
      rvm: default
    - env: RAILS_VERSION='~> 3.2'
      rvm: default
    - env: RAILS_VERSION='~> 4.0' SPROCKETS_RAILS_VERSION='~> 2.0'
      rvm: '2'
    - env: RAILS_VERSION='~> 4.0'
      rvm: '2'
    - env: RUBOCOP=true
      rvm: default
  allow_failures:
    - rvm: jruby-19mode
addons:
  code_climate:<commit_msg>real multiline commands in travis<commit_after>sudo: false
language: ruby
cache:
  bundler: true
  directories:
  - $(npm root)
  - ~/bin
rvm:
  - '1.8'
  - '1.9'
  - '2.0'
  - '2.1'
  - '2.2'
  - jruby-19mode
  - ree
script: |
  (
    set -ex
    if [ -n "$RUBOCOP" ]; then
      bundle exec rubocop
    elif [ -n "$RAILS_VERSION" ]; then
      bundle exec image_optim --info
      bundle exec rspec spec/image_optim/railtie_spec.rb
    else
      bundle exec image_optim --info
      bundle exec rspec
    fi
  )
before_install: |
  (
    set -ex
    if [ -z "$RUBOCOP" ]; then
      command -v svgo || npm install svgo
      command -v pngout || {
        mkdir -p ~/bin
        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'
      }
    fi
  )
matrix:
  fast_finish: true
  include:
    - env: RAILS_VERSION='~> 3.2' SPROCKETS_VERSION='~> 2.0'
      rvm: default
    - env: RAILS_VERSION='~> 3.2'
      rvm: default
    - env: RAILS_VERSION='~> 4.0' SPROCKETS_RAILS_VERSION='~> 2.0'
      rvm: '2'
    - env: RAILS_VERSION='~> 4.0'
      rvm: '2'
    - env: RUBOCOP=true
      rvm: default
  allow_failures:
    - rvm: jruby-19mode
addons:
  code_climate:
{'fraction_non_alphanumeric': 0.15173824130879346, 'fraction_numerical': 0.03353783231083845, 'mean_word_length': 2.1890482398956976, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '3038380', 'n_tokens_mistral': 1078, 'n_tokens_neox': 1014, 'n_words': 235}