<commit_before>env:
  global:
    - CC_TEST_REPORTER_ID=1ec0e82ac7a13e879f71d36abbf09c7c691c71ec58a8b7f74beef6086e3b65db

language: ruby

cache: bundler

# 2.0 has only one test not passing
# (TranslationIO::YAMLConversion#get_yaml_data_from_flat_translations works with weird not-escaped code)
rvm:
  - 2.1
  - 2.2
  - 2.3
  - 2.4
  - 2.5
  - jruby

gemfile:
  - gemfiles/lowest.gemfile
  - gemfiles/latest.gemfile

# Rails 5 is not compatible with ruby < 2.2.2
matrix:
  exclude:
    - rvm: 2.1
      jdk: gemfiles/latest.gemfile
    - rvm: 2.2
      jdk: gemfiles/latest.gemfile

sudo: false

before_script:
  - gem update --system # https://github.com/travis-ci/travis-ci/issues/8978
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build

script:
  - bundle exec rspec<commit_msg>try to remove cache to make ruby 2.5.0 test passes<commit_after>env:
  global:
    - CC_TEST_REPORTER_ID=1ec0e82ac7a13e879f71d36abbf09c7c691c71ec58a8b7f74beef6086e3b65db

language: ruby

# 2.0 has only one test not passing
# (TranslationIO::YAMLConversion#get_yaml_data_from_flat_translations works with weird not-escaped code)
rvm:
  - 2.1
  - 2.2
  - 2.3
  - 2.4
  - 2.5
  - jruby

gemfile:
  - gemfiles/lowest.gemfile
  - gemfiles/latest.gemfile

# Rails 5 is not compatible with ruby < 2.2.2
matrix:
  exclude:
    - rvm: 2.1
      jdk: gemfiles/latest.gemfile
    - rvm: 2.2
      jdk: gemfiles/latest.gemfile

sudo: false

before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build

script:
  - bundle exec rspec
{'fraction_non_alphanumeric': 0.11029411764705882, 'fraction_numerical': 0.06843891402714933, 'mean_word_length': 3.0854503464203233, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3127335', 'n_tokens_mistral': 792, 'n_tokens_neox': 723, 'n_words': 138}