<commit_before>before_script:
  - bundle install
  - script/build/test_db_config.sh

stages:
  - pre
  - test
  - browser

rubocop:
  stage: pre
  tags:
    - core
  script:
    - bundle exec rubocop

coffeelint:
  stage: pre
  tags:
    - core
  script:
    - coffeelint app/

job_unit:
  stage: test
  tags:
    - core
  script:
    - export RAILS_ENV=test
    - rake db:drop;
    - rake db:create
    - rake db:migrate
    - rake db:seed
    - rake test:units
    - rake test:controllers

job_integration_email_helper:
  stage: test
  tags:
    - core
  script:
    - export RAILS_ENV=test
    - rake db:drop;
    - rake db:create
    - rake db:migrate
    - ruby -I test/ test/integration/email_helper_test.rb

job_integration_twitter:
  stage: test
  tags:
    - core
  script:
    - export RAILS_ENV=test
    - rake db:drop;
    - rake db:create
    - rake db:migrate<commit_msg>Just load de-de for unit tests to increase speed.<commit_after>before_script:
  - bundle install
  - script/build/test_db_config.sh

stages:
  - pre
  - test
  - browser

rubocop:
  stage: pre
  tags:
    - core
  script:
    - bundle exec rubocop

coffeelint:
  stage: pre
  tags:
    - core
  script:
    - coffeelint app/

job_unit:
  stage: test
  tags:
    - core
  script:
    - export RAILS_ENV=test
    - export Z_LOCALES=en-us:de-de
    - rake db:drop;
    - rake db:create
    - rake db:migrate
    - rake db:seed
    - rake test:units
    - rake test:controllers

job_integration_email_helper:
  stage: test
  tags:
    - core
  script:
    - export RAILS_ENV=test
    - rake db:drop;
    - rake db:create
    - rake db:migrate
    - ruby -I test/ test/integration/email_helper_test.rb

job_integration_twitter:
  stage: test
  tags:
    - core
  script:
    - export RAILS_ENV=test
    - rake db:drop;
    - rake db:create
    - rake db:migrate
{'fraction_non_alphanumeric': 0.09071156979902227, 'fraction_numerical': 0.0, 'mean_word_length': 2.1813471502590676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4113189', 'n_tokens_mistral': 721, 'n_tokens_neox': 714, 'n_words': 163}