<commit_before>language: php

before_script:

  # Packages
  - sudo apt-get update
  - sudo apt-get install -y apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-mysql
  - sudo a2enmod rewrite
  - sudo php5enmod mcrypt

  # Database and sample data
  - wget -O magento-sample-data-1.6.1.0.tar.gz http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz
  - tar -xzf magento-sample-data-1.6.1.0.tar.gz
  - mysql -uroot -e 'CREATE DATABASE 'magento';'
  - mysql -uroot magento < magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql

  # Apache virtual host
  - sudo cp -f build/apache /etc/apache2/sites-available/manager.conf
  - sudo sed -e "s?%BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/manager.conf
  - sudo a2ensite manager
  - sudo service apache2 restart
  - sudo sh -c 'echo "127.0.0.1 manager.dev" >> /etc/hosts'

  # Install
  - composer install --prefer-source
  - php -f vendor/magetest/magento/src/install.php -- --license_agreement_accepted yes --locale en_GB --timezone Europe/London --default_currency GBP --db_host localhost --db_name magento --db_user root --db_pass "" --url http://manager.dev/ --skip_url_validation yes --use_rewrites yes --use_secure no --secure_base_url --use_secure_admin no --admin_firstname admin --admin_lastname admin --admin_email <EMAIL> --admin_username admin --admin_password <PASSWORD>

script: vendor/bin/phpspec r && vendor/bin/phpunit -v --coverage-clover=coverage.clover<commit_msg>Remove php5enmode disabled on Ubuntu 12.04<commit_after>language: php

before_script:

  # Packages
  - sudo apt-get update
  - sudo apt-get install -y apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-mysql
  - sudo a2enmod rewrite

  # Database and sample data
  - wget -O magento-sample-data-1.6.1.0.tar.gz http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz
  - tar -xzf magento-sample-data-1.6.1.0.tar.gz
  - mysql -uroot -e 'CREATE DATABASE 'magento';'
  - mysql -uroot magento < magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql

  # Apache virtual host
  - sudo cp -f build/apache /etc/apache2/sites-available/manager.conf
  - sudo sed -e "s?%BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/manager.conf
  - sudo a2ensite manager
  - sudo service apache2 restart
  - sudo sh -c 'echo "127.0.0.1 manager.dev" >> /etc/hosts'

  # Install
  - composer install --prefer-source
  - php -f vendor/magetest/magento/src/install.php -- --license_agreement_accepted yes --locale en_GB --timezone Europe/London --default_currency GBP --db_host localhost --db_name magento --db_user root --db_pass "" --url http://manager.dev/ --skip_url_validation yes --use_rewrites yes --use_secure no --secure_base_url --use_secure_admin no --admin_firstname admin --admin_lastname admin --admin_email <EMAIL> --admin_username admin --admin_password <PASSWORD>

script: vendor/bin/phpspec r && vendor/bin/phpunit -v --coverage-clover=coverage.clover
{'fraction_non_alphanumeric': 0.13646902947996026, 'fraction_numerical': 0.029811195760185493, 'mean_word_length': 3.301994301994302, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 14, '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': '3564717', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1098, 'n_words': 243}