<commit_before>sudo: false
language: ruby
cache:
  bundler: true
env:
  global:
    CC_TEST_REPORTER_ID=13dd1372fb4b8a0c9f5ed2fccae0be25e47f3c8785bd0adc8f50a463c0d40761
before_install:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
install:
  - bundle install --path=${BUNDLE_PATH:-vendor/bundle}  # Install ruby gems
script:
  # - bundle exec rubocop -DESP           # linting
  - bundle exec rake                    # specs

# Pipe the coverage data to Code Climate
after_script:
  - ./cc-test-reporter format-coverage -t simplecov -o coverage/codeclimate.backend.json coverage/backend/.resultset.json # Format backend coverage
  - if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then ./cc-test-reporter upload-coverage; fi  # Upload coverage/codeclimate.json

jobs:
  include:
    - rvm: ruby-2.0.0-p648
      gemfile: gemfiles/ruby_2.0.gemfile
    - rvm: ruby-2.1.10
      gemfile: gemfiles/ruby_2.1.gemfile
    - rvm: ruby-2.2.10
      gemfile: gemfiles/ruby_2.2.gemfile
    - rvm: ruby-2.3.8
      gemfile: gemfiles/ruby_2.3.gemfile
    - rvm: ruby-2.4.9
      gemfile: gemfiles/ruby_2.4.gemfile
    - rvm: ruby-2.5.7
      gemfile: gemfiles/ruby_2.5.gemfile
    - rvm: ruby-2.6.5
      gemfile: gemfiles/ruby_2.6.gemfile<commit_msg>Use bundler v1.17.3 for all Rubies<commit_after>sudo: false
language: ruby
cache:
  bundler: true
env:
  global:
    CC_TEST_REPORTER_ID=13dd1372fb4b8a0c9f5ed2fccae0be25e47f3c8785bd0adc8f50a463c0d40761
before_install:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - gem install bundler:1.17.3
install:
  - bundle install --path=${BUNDLE_PATH:-vendor/bundle}  # Install ruby gems
script:
  # - bundle exec rubocop -DESP           # linting
  - bundle exec rake                    # specs

# Pipe the coverage data to Code Climate
after_script:
  - ./cc-test-reporter format-coverage -t simplecov -o coverage/codeclimate.backend.json coverage/backend/.resultset.json # Format backend coverage
  - if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then ./cc-test-reporter upload-coverage; fi  # Upload coverage/codeclimate.json

jobs:
  include:
    - rvm: ruby-2.0.0-p648
      gemfile: gemfiles/ruby_2.0.gemfile
    - rvm: ruby-2.1.10
      gemfile: gemfiles/ruby_2.1.gemfile
    - rvm: ruby-2.2.10
      gemfile: gemfiles/ruby_2.2.gemfile
    - rvm: ruby-2.3.8
      gemfile: gemfiles/ruby_2.3.gemfile
    - rvm: ruby-2.4.9
      gemfile: gemfiles/ruby_2.4.gemfile
    - rvm: ruby-2.5.7
      gemfile: gemfiles/ruby_2.5.gemfile
    - rvm: ruby-2.6.5
      gemfile: gemfiles/ruby_2.6.gemfile
{'fraction_non_alphanumeric': 0.1197339246119734, 'fraction_numerical': 0.06060606060606061, 'mean_word_length': 2.8180535966149507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2787384', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1059, 'n_words': 191}