<commit_before>language: php

php:
  - 5.6

services:
  - rabbitmq # will start rabbitmq-server
#  - mongodb
#  - redis-server
#  - elasticsearch

cache:
    directories:
        - ~/.composer/cache
        - node_modules

git:
  submodules: false

env:
  - BASE_URL="http://127.0.0.1/" API_BASE_URL="http://127.0.0.2/app_test.php" NODE_ENV=travis NODE_CONFIG_DIR=./gameserver/config

before_script:
# Prepare Webserver
 - sudo apt-get install apache2 libapache2-mod-fastcgi

# Enable php-fpm
 - sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
 - sudo a2enmod rewrite actions fastcgi alias
 - echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
 - ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm

# Configure apache virtual hosts
 - sudo cp -f app/config/travis-ci-apache-api.conf /etc/apache2/sites-available/api.conf
 - sudo cp -f app/config/travis-ci-apache-client.conf /etc/apache2/sites-available/client.conf
 - sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/api.conf
 - sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/client.conf
 - sudo a2ensite api.conf client.conf
 - sudo service apache2 restart

# Set the GitHub OAuth token to make use of the 6000 per hour rate limit
# - cp .travis-composer-config.json ~/.composer/config.json

# Symfony specific
 - cp app/config/parameters.yml.travis app/config/parameters.yml
 - composer install --no-progress --prefer-dist
 - php app/console doctrine:database:create --env=test
 - php app/console doctrine:schema:create --env=test
 - mkdir -p app/cache app/logs
 - chmod -R 777 /tmp/cache /tmp/logs app/cache app/logs

# Assets dependencies
 - npm install
 - npm install -g bower protractor cucumber karma-cli jasmine-node
 - bower install

# JS specific
 - cp client/config/main.json.travis client/config/main.json

# Protractor
 - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
 - sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
 - sudo apt-get update
 - sudo apt-get install google-chrome-stable
 - webdriver-manager update --standalone
 - "export DISPLAY=:99.0"
 - "sh -e /etc/init.d/xvfb start"<commit_msg>update composer<commit_after>language: php

php:
  - 5.6

services:
  - rabbitmq # will start rabbitmq-server
#  - mongodb
#  - redis-server
#  - elasticsearch

cache:
    directories:
        - ~/.composer/cache
        - node_modules

git:
  submodules: false

env:
  - BASE_URL="http://127.0.0.1/" API_BASE_URL="http://127.0.0.2/app_test.php" NODE_ENV=travis NODE_CONFIG_DIR=./gameserver/config

before_script:
# Prepare Webserver
 - sudo apt-get install apache2 libapache2-mod-fastcgi

# Enable php-fpm
 - sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
 - sudo a2enmod rewrite actions fastcgi alias
 - echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
 - ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm

# Configure apache virtual hosts
 - sudo cp -f app/config/travis-ci-apache-api.conf /etc/apache2/sites-available/api.conf
 - sudo cp -f app/config/travis-ci-apache-client.conf /etc/apache2/sites-available/client.conf
 - sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/api.conf
 - sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/client.conf
 - sudo a2ensite api.conf client.conf
 - sudo service apache2 restart

# Set the GitHub OAuth token to make use of the 6000 per hour rate limit
# - cp .travis-composer-config.json ~/.composer/config.json

# Symfony specific
 - cp app/config/parameters.yml.travis app/config/parameters.yml
 - composer self-update && composer install --no-progress --prefer-dist
 - php app/console doctrine:database:create --env=test
 - php app/console doctrine:schema:create --env=test
 - mkdir -p app/cache app/logs
 - chmod -R 777 /tmp/cache /tmp/logs app/cache app/logs

# Assets dependencies
 - npm install
 - npm install -g bower protractor cucumber karma-cli jasmine-node
 - bower install

# JS specific
 - cp client/config/main.json.travis client/config/main.json

# Protractor
 - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
 - sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
 - sudo apt-get update
 - sudo apt-get install google-chrome-stable
 - webdriver-manager update --standalone
 - "export DISPLAY=:99.0"
 - "sh -e /etc/init.d/xvfb start"
{'fraction_non_alphanumeric': 0.14138655462184874, 'fraction_numerical': 0.014285714285714285, 'mean_word_length': 3.32032667876588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3453916', 'n_tokens_mistral': 1805, 'n_tokens_neox': 1702, 'n_words': 372}