<commit_before>language: php

php:
  - 5.4
  - 5.5

before_script:
  # starting PHP server (PHP 5.4)
  - php -S 127.0.0.1:4000 &
  - sleep 3

  # installing wp-cli
  - curl https://raw.github.com/wp-cli/wp-cli.github.com/master/installer.sh | bash
  - ln -s $HOME/.wp-cli/bin/wp wp

  # installing WP. Important to set URL same for acceptance tests
  - sh wp db create
  - sh wp core install --url="http://127.0.0.1:4000" --title="UnTestEd" --admin_password="<PASSWORD>" --admin_email="<EMAIL>"

  # activating test plugin
  - sh wp plugin activate user-submitted-posts

  # preparing data for test
  - sh wp term create "Game of Drones" category
  - sh wp post create --post_type=page --post_status=publish --post_title='Submit a Post' --post_content="[user-submitted-posts]"
  - sh wp option update usp_options '{categories: [1,2]}' --format=json

script: "php codecept.phar run"<commit_msg>updated wp options format<commit_after>language: php

php:
  - 5.4
  - 5.5

before_script:
  # starting PHP server (PHP 5.4)
  - php -S 127.0.0.1:4000 &
  - sleep 3

  # installing wp-cli
  - curl https://raw.github.com/wp-cli/wp-cli.github.com/master/installer.sh | bash
  - ln -s $HOME/.wp-cli/bin/wp wp

  # installing WP. Important to set URL same for acceptance tests
  - sh wp db create
  - sh wp core install --url="http://127.0.0.1:4000" --title="UnTestEd" --admin_password="<PASSWORD>" --admin_email="<EMAIL>"

  # activating test plugin
  - sh wp plugin activate user-submitted-posts

  # preparing data for test
  - sh wp term create "Game of Drones" category
  - sh wp post create --post_type=page --post_status=publish --post_title='Submit a Post' --post_content="[user-submitted-posts]"
  - sh wp option update usp_options "{categories: [1,2]}" --format=json

script: "php codecept.phar run"
{'fraction_non_alphanumeric': 0.14238042269187987, 'fraction_numerical': 0.03225806451612903, 'mean_word_length': 3.126146788990826, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '442511', 'n_tokens_mistral': 678, 'n_tokens_neox': 619, 'n_words': 180}