<commit_before>language: php

php:
  - 5.6
  - 5.5
  - 5.4
  - 5.3

before_script:
  - git submodule sync
  - git submodule update --init --recursive
  - cd application
  - cp app/config/parameters.yml.dist app/config/parameters.yml
  - composer self-update
  - composer update
  - php app/console doctrine:database:create
  - php app/console doctrine:schema:create
  - php app/console doctrine:fixtures:load --fixtures=./mapbender/src/Mapbender/CoreBundle/DataFixtures/ORM/Epsg/ --append
  - php app/console fom:user:resetroot --username root --password <PASSWORD> --email <EMAIL> --silent
  - phantomjs --webdriver=9876 &
  - export PJSPID=$(echo $!)
  - sudo pip install selenium

script: phpunit -c app/ --coverage-clover ../testresults/clover.xml

after_script:
  - php bin/coveralls -v
  - cat /tmp/weblog<commit_msg>Fix travis php test versions<commit_after>language: php

php:
  - 5.3

before_script:
  - git submodule sync
  - git submodule update --init --recursive
  - cd application
  - cp app/config/parameters.yml.dist app/config/parameters.yml
  - composer self-update
  - composer update
  - php app/console doctrine:database:create
  - php app/console doctrine:schema:create
  - php app/console doctrine:fixtures:load --fixtures=./mapbender/src/Mapbender/CoreBundle/DataFixtures/ORM/Epsg/ --append
  - php app/console fom:user:resetroot --username root --password <PASSWORD> --email <EMAIL> --silent
  - phantomjs --webdriver=9876 &
  - export PJSPID=$(echo $!)
  - sudo pip install selenium

script: phpunit -c app/ --coverage-clover ../testresults/clover.xml

after_script:
  - php bin/coveralls -v
  - cat /tmp/weblog
{'fraction_non_alphanumeric': 0.12461820403176542, 'fraction_numerical': 0.010995723885155772, 'mean_word_length': 3.1468354430379746, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '701979', 'n_tokens_mistral': 590, 'n_tokens_neox': 547, 'n_words': 132}