<commit_before>version: 2
jobs:
  test_fresh_install_rails_5_2_3:
    parallelism: 2
    docker:
    - image: circleci/ruby:2.6.3
      environment:
        RAILS_ENV: test
        RACK_ENV: test
        POSTGRES_USER: root
        PGHOST: 127.0.0.1
        DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_BENCHMARK: true
        QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
    - image: circleci/postgres:9.6.6-alpine
    steps:
    - checkout
    - run:
        name: Install rails, add QC and run migrations
        command: |
          cd test/rails-tests/
          sh rails523.sh
  test_ruby_2_4_6:
    docker:
    - image: circleci/ruby:2.4.6
      environment:
        RAILS_ENV: test
        RACK_ENV: test
        POSTGRES_USER: root
        PGHOST: 127.0.0.1
        DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_BENCHMARK: true
        QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
    - image: circleci/postgres:9.6.6-alpine
    steps:
    - checkout
    - run:
        name: Install env dependencies
        command: |
          sudo apt-get update
          sudo apt-get install postgresql-client
    - restore_cache:
        key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
          }}
    - run:
        name: Install Ruby gems
        command: |
          bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
    - save_cache:
        key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
          }}
        paths:
        - ~/project/vendor/bundle
    - run:
        name: Minitest
        command: |
          bundle exec rake
    - store_artifacts:
        path: test/reports/
    - store_test_results:
        path: test/reports/
  test_ruby_2_5_4:
    docker:
    - image: circleci/ruby:2.5.4
      environment:
        RAILS_ENV: test
        RACK_ENV: test
        POSTGRES_USER: root
        PGHOST: 127.0.0.1
        DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_BENCHMARK: true
        QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
    - image: circleci/postgres:9.6.6-alpine
    steps:
    - checkout
    - run:
        name: Install env dependencies
        command: |
          sudo apt-get update
          sudo apt-get install postgresql-client
    - restore_cache:
        key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
          }}
    - run:
        name: Install Ruby gems
        command: |
          bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
    - save_cache:
        key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
          }}
        paths:
        - ~/project/vendor/bundle
    - run:
        name: Minitest
        command: |
          bundle exec rake
    - store_artifacts:
        path: test/reports/
    - store_test_results:
        path: test/reports/
  test_ruby_2_6_3:
    docker:
    - image: circleci/ruby:2.6.3
      environment:
        RAILS_ENV: test
        RACK_ENV: test
        POSTGRES_USER: root
        PGHOST: 127.0.0.1
        DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_BENCHMARK: true
        QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
    - image: circleci/postgres:9.6.6-alpine
    steps:
    - checkout
    - run:
        name: Install env dependencies
        command: |
          sudo apt-get update
          sudo apt-get install postgresql-client
    - restore_cache:
        key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
          }}
    - run:
        name: Install Ruby gems
        command: |
          bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
    - save_cache:
        key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
          }}
        paths:
        - ~/project/vendor/bundle
    - run:
        name: Minitest
        command: |
          bundle exec rake
    - store_artifacts:
        path: test/reports/
    - store_test_results:
        path: test/reports/
workflows:
  version: 2
  test:
    jobs:
    - test_ruby_2_4_6
    - test_ruby_2_5_4
    - test_ruby_2_6_3
    - test_fresh_install_rails_5_2_3
<commit_msg>Update to currently supported ruby versions (#323)<commit_after>version: 2
jobs:
  test_fresh_install_rails_5_2_3:
    parallelism: 2
    docker:
    - image: circleci/ruby:2.6
      environment:
        RAILS_ENV: test
        RACK_ENV: test
        POSTGRES_USER: root
        PGHOST: 127.0.0.1
        DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_BENCHMARK: true
        QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
    - image: circleci/postgres:9.6.6-alpine
    steps:
    - checkout
    - run:
        name: Install rails, add QC and run migrations
        command: |
          cd test/rails-tests/
          sh rails523.sh
  test_ruby_2_4:
    docker:
    - image: circleci/ruby:2.4
      environment:
        RAILS_ENV: test
        RACK_ENV: test
        POSTGRES_USER: root
        PGHOST: 127.0.0.1
        DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_BENCHMARK: true
        QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
    - image: circleci/postgres:9.6.6-alpine
    steps:
    - checkout
    - run:
        name: Install env dependencies
        command: |
          sudo apt-get update
          sudo apt-get install postgresql-client
    - restore_cache:
        key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
          }}
    - run:
        name: Install Ruby gems
        command: |
          bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
    - save_cache:
        key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
          }}
        paths:
        - ~/project/vendor/bundle
    - run:
        name: Minitest
        command: |
          bundle exec rake
    - store_artifacts:
        path: test/reports/
    - store_test_results:
        path: test/reports/
  test_ruby_2_5:
    docker:
    - image: circleci/ruby:2.5
      environment:
        RAILS_ENV: test
        RACK_ENV: test
        POSTGRES_USER: root
        PGHOST: 127.0.0.1
        DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_BENCHMARK: true
        QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
    - image: circleci/postgres:9.6.6-alpine
    steps:
    - checkout
    - run:
        name: Install env dependencies
        command: |
          sudo apt-get update
          sudo apt-get install postgresql-client
    - restore_cache:
        key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
          }}
    - run:
        name: Install Ruby gems
        command: |
          bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
    - save_cache:
        key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
          }}
        paths:
        - ~/project/vendor/bundle
    - run:
        name: Minitest
        command: |
          bundle exec rake
    - store_artifacts:
        path: test/reports/
    - store_test_results:
        path: test/reports/
  test_ruby_2_6:
    docker:
    - image: circleci/ruby:2.6
      environment:
        RAILS_ENV: test
        RACK_ENV: test
        POSTGRES_USER: root
        PGHOST: 127.0.0.1
        DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_DATABASE_URL: postgres://postgres@127.0.0.1/circle_test
        QC_BENCHMARK: true
        QC_BENCHMARK_MAX_TIME_DEQUEUE: 60
    - image: circleci/postgres:9.6.6-alpine
    steps:
    - checkout
    - run:
        name: Install env dependencies
        command: |
          sudo apt-get update
          sudo apt-get install postgresql-client
    - restore_cache:
        key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
          }}
    - run:
        name: Install Ruby gems
        command: |
          bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
    - save_cache:
        key: v1-qc-bundler-{{ checksum "Gemfile" }}-{{ checksum "queue_classic.gemspec"
          }}
        paths:
        - ~/project/vendor/bundle
    - run:
        name: Minitest
        command: |
          bundle exec rake
    - store_artifacts:
        path: test/reports/
    - store_test_results:
        path: test/reports/
workflows:
  version: 2
  test:
    jobs:
    - test_ruby_2_4
    - test_ruby_2_5
    - test_ruby_2_6
    - test_fresh_install_rails_5_2_3

{'fraction_non_alphanumeric': 0.10407737113968568, 'fraction_numerical': 0.03132212331025387, 'mean_word_length': 1.8898062877103843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 24, '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': '6232370', 'n_tokens_mistral': 3359, 'n_tokens_neox': 3129, 'n_words': 598}