<commit_before>sudo: required
language: ruby
dist: trusty
cache:
  bundler: true
  directories:
    - tmp/cache/assets/test/sprockets
addons:
  apt:
    packages:
      # Postgresql version used here should match production
      - postgresql-9.4
      - postgresql-client-9.4
  code_climate:
    repo_token:
      secure: "PfhLGBKRgNqhKuYCJsK+VPhdAzcgWFGeeOyxC/eS8gtlvIISVdgyZE+r30uIei0DFI6zEiN62eW4d+xtT4j7/e2ZcAcx7U52mza/SnQNuu3nCGQDJB8VOvV5NbnwXfi8vfr4e889Mt7k3ocd2c4gqB4UtRqrzhygj7HN+B/GfEk="
env:
  matrix:
    - COVERAGE=true
    - STATIC_CHECKS=true
  global:
    - secure: "<KEY>
    - GROWSTUFF_EMAIL="<EMAIL>"
    - GROWSTUFF_SITE_NAME="Growstuff (travis)"
    - RAILS_SECRET_TOKEN='<KEY>'
before_install:
  - sudo apt clean
  # - sudo apt update
  - sudo apt install dpkg
  - sudo apt install google-chrome-stable
  - ./script/install_linters.sh
  - ELASTIC_SEARCH_VERSION="6.2.3" ./script/install_elasticsearch.sh
script:
  - >
    if [ "${STATIC_CHECKS}" = "true" ]; then
      ./script/check_static.rb
    else
      RAILS_ENV=test bundle exec rake db:create db:migrate search:reindex assets:precompile;
      npx percy exec -- bundle exec rspec spec
    fi;
after_script:
  - >
    if [ "${COVERAGE}" = "true" ]; then
      gem install codeclimate-test-reporter
      codeclimate-test-reporter
    fi
before_deploy:
  - bundle exec script/heroku_maintenance.rb on
deploy:
  provider: heroku
  api_key:
    secure: "<KEY>
  on:
    repo: Growstuff/growstuff
    condition: "$RSPEC_TAG = elasticsearch"
  app:
    dev: growstuff-staging
    master: growstuff-prod
    travis_deploy: tranquil-basin-3130
    travis_containers: tranquil-basin-3130
  run:
    - "rake db:migrate"
    - "script/deploy-tasks.sh"<commit_msg>fix deploy<commit_after>sudo: required
language: ruby
dist: trusty
cache:
  bundler: true
  directories:
    - tmp/cache/assets/test/sprockets
addons:
  apt:
    packages:
      # Postgresql version used here should match production
      - postgresql-9.4
      - postgresql-client-9.4
  code_climate:
    repo_token:
      secure: "PfhLGBKRgNqhKuYCJsK+VPhdAzcgWFGeeOyxC/eS8gtlvIISVdgyZE+r30uIei0DFI6zEiN62eW4d+xtT4j7/e2ZcAcx7U52mza/SnQNuu3nCGQDJB8VOvV5NbnwXfi8vfr4e889Mt7k3ocd2c4gqB4UtRqrzhygj7HN+B/GfEk="
env:
  matrix:
    - COVERAGE=true
    - STATIC_CHECKS=true
  global:
    - secure: "<KEY>
    - GROWSTUFF_EMAIL="<EMAIL>"
    - GROWSTUFF_SITE_NAME="Growstuff (travis)"
    - RAILS_SECRET_TOKEN='<KEY>'
before_install:
  - sudo apt clean
  # - sudo apt update
  - sudo apt install dpkg
  - sudo apt install google-chrome-stable
  - ./script/install_linters.sh
  - ELASTIC_SEARCH_VERSION="6.2.3" ./script/install_elasticsearch.sh
script:
  - >
    if [ "${STATIC_CHECKS}" = "true" ]; then
      ./script/check_static.rb
    else
      RAILS_ENV=test bundle exec rake db:create db:migrate search:reindex assets:precompile;
      npx percy exec -- bundle exec rspec spec
    fi;
after_script:
  - >
    if [ "${COVERAGE}" = "true" ]; then
      gem install codeclimate-test-reporter
      codeclimate-test-reporter
    fi
before_deploy:
  - bundle exec script/heroku_maintenance.rb on
deploy:
  provider: heroku
  api_key:
    secure: "<KEY>
  on:
    repo: Growstuff/growstuff
  app:
    dev: growstuff-staging
    master: growstuff-prod
    travis_deploy: tranquil-basin-3130
    travis_containers: tranquil-basin-3130
  run:
    - "rake db:migrate"
    - "script/deploy-tasks.sh"
{'fraction_non_alphanumeric': 0.10266159695817491, 'fraction_numerical': 0.025153553670663936, 'mean_word_length': 3.275, 'pattern_counts': {'":': 0, '<': 11, '<?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': '4837402', 'n_tokens_mistral': 1430, 'n_tokens_neox': 1380, 'n_words': 235}