<commit_before>language: php
php:
  - "5.6"

services:
  - mongodb

env:
  - PECLMONGO=mongo-1.6.10

before_install:
  - sudo apt-get update > /dev/null
  - "mongo --eval 'db.runCommand({setParameter: 1, textSearchEnabled: true})' admin"

install:
  # install php packages required for running YAWIK phpunit tests
  - sudo apt-get install -y --force-yes php5-intl php5-curl php5-xsl
  # install npm to manage js assets
  - sudo apt-get install -y nodejs

  # add composer's global bin directory to the path
  - export PATH="$HOME/.composer/vendor/bin:$PATH"

before_script:
  # copy default app config
  - mkdir -p config/autoload
  - mkdir - p build/behat
  - cp .travis/yawik.config.global.php config/autoload

  # install Mongo extension
  - sh -c "wget http://pecl.php.net/get/$PECLMONGO.tgz"
  - sh -c "tar xfz $PECLMONGO.tgz"
  - sh -c "cd $PECLMONGO && phpize && ./configure && make && sudo make install"

  - phpenv config-add .travis/phpenv.ini
  - ./install.sh -b .travis/build.properties.travis
  - ./composer.phar self-update
  - ./composer.phar install --dev

  # setup display, behat, and selenium
  - "sh -e /etc/init.d/xvfb start"
  - "export DISPLAY=:99.0"
  - "wget http://chromedriver.storage.googleapis.com/2.12/chromedriver_linux64.zip -O chromedriver.zip && unzip chromedriver.zip && sudo mv chromedriver /usr/bin"
  - ./vendor/bin/selenium-server-standalone -Dwebdriver.chrome.driver=/usr/bin/chromedriver > /dev/null 2>&1 &
  - sleep 5
  - APPLICATION_ENV=development php -S localhost:8000 -t public public/index.php > /dev/null 2>&1 &
  - sleep 3


script:
  - ln -s ../test/build/logs build
  - cd test
  - ./phpunit --configuration $TRAVIS_BUILD_DIR/test/phpunit.xml.dist
  - cd $TRAVIS_BUILD_DIR
  - APPLICATION_ENV=development ./vendor/bin/behat

after_script:
  - cd $TRAVIS_BUILD_DIR
  - "./vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles \"build/behat/*.log\""
  - "./vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles \"log/*.log\""
  - "./vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles \"log/tracy/*.*\""
  - "IMGUR_API_KEY=52ad4ba928121d6598456d7d4ee59b38ea213539 ./vendor/lakion/mink-debug-extension/travis/tools/upload-screenshots \"build/behat/*.png\""
  - ls -l test/build/logs
  - php vendor/bin/coveralls -vvv
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover test/build/logs/clover.serialized

<commit_msg>[ZF3][Behat] fixed typo on travis script<commit_after>language: php
php:
  - "5.6"

services:
  - mongodb

env:
  - PECLMONGO=mongo-1.6.10

before_install:
  - sudo apt-get update > /dev/null
  - "mongo --eval 'db.runCommand({setParameter: 1, textSearchEnabled: true})' admin"

install:
  # install php packages required for running YAWIK phpunit tests
  - sudo apt-get install -y --force-yes php5-intl php5-curl php5-xsl
  # install npm to manage js assets
  - sudo apt-get install -y nodejs

  # add composer's global bin directory to the path
  - export PATH="$HOME/.composer/vendor/bin:$PATH"

before_script:
  # copy default app config
  - mkdir -p config/autoload
  - mkdir -p build/behat
  - cp .travis/yawik.config.global.php config/autoload

  # install Mongo extension
  - sh -c "wget http://pecl.php.net/get/$PECLMONGO.tgz"
  - sh -c "tar xfz $PECLMONGO.tgz"
  - sh -c "cd $PECLMONGO && phpize && ./configure && make && sudo make install"

  - phpenv config-add .travis/phpenv.ini
  - ./install.sh -b .travis/build.properties.travis
  - ./composer.phar self-update
  - ./composer.phar install --dev

  # setup display, behat, and selenium
  - "sh -e /etc/init.d/xvfb start"
  - "export DISPLAY=:99.0"
  - "wget http://chromedriver.storage.googleapis.com/2.12/chromedriver_linux64.zip -O chromedriver.zip && unzip chromedriver.zip && sudo mv chromedriver /usr/bin"
  - ./vendor/bin/selenium-server-standalone -Dwebdriver.chrome.driver=/usr/bin/chromedriver > /dev/null 2>&1 &
  - sleep 5
  - APPLICATION_ENV=development php -S localhost:8000 -t public public/index.php > /dev/null 2>&1 &
  - sleep 3


script:
  - ln -s ../test/build/logs build
  - cd test
  - ./phpunit --configuration $TRAVIS_BUILD_DIR/test/phpunit.xml.dist
  - cd $TRAVIS_BUILD_DIR
  - APPLICATION_ENV=development ./vendor/bin/behat

after_script:
  - cd $TRAVIS_BUILD_DIR
  - "./vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles \"build/behat/*.log\""
  - "./vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles \"log/*.log\""
  - "./vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles \"log/tracy/*.*\""
  - "IMGUR_API_KEY=52ad4ba928121d6598456d7d4ee59b38ea213539 ./vendor/lakion/mink-debug-extension/travis/tools/upload-screenshots \"build/behat/*.png\""
  - ls -l test/build/logs
  - php vendor/bin/coveralls -vvv
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover test/build/logs/clover.serialized


{'fraction_non_alphanumeric': 0.14580801944106925, 'fraction_numerical': 0.02288375860672337, 'mean_word_length': 3.1820491109229465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6757620', 'n_tokens_mistral': 2007, 'n_tokens_neox': 1862, 'n_words': 371}