<commit_before>language: php

dist: trusty

php:
  - 7.2

env:
  - ENVIRONMENT=test DEBUG=true

before_install:
    - composer self-update
    - if [[ ! -z "$GITHUB_OAUTH_TOKEN" ]]; then composer config -g github-oauth.github.com "$GITHUB_OAUTH_TOKEN" >/dev/null 2>&1; fi
    - export USE_ZEND_ALLOC=0
    
install:
    - sudo apt-get install -y --force-yes php5-mysql
    - mysql -e 'create database enhavo_test'
    - composer install --no-interaction --optimize-autoloader --prefer-dist

before_script:
    - bin/console cache:warmup --env=test --no-debug
    - bin/console doctrine:schema:create --env=test
    - bin/console assets:install --env=test --no-debug

    - php -v
    - php -i | grep -v GITHUB_OAUTH_TOKEN

script:
  - composer validate
  - bin/behat --strict
  - bin/phpunit --stop-on-failure
  - vendor/bin/phplint<commit_msg>fix travis<commit_after>language: php

dist: trusty

php:
  - 7.2

env:
  - ENVIRONMENT=test DEBUG=true

before_install:
    - composer self-update
    - if [[ ! -z "$GITHUB_OAUTH_TOKEN" ]]; then composer config -g github-oauth.github.com "$GITHUB_OAUTH_TOKEN" >/dev/null 2>&1; fi
    - export USE_ZEND_ALLOC=0
    
install:
    - sudo apt-get install -y --force-yes php5-mysql
    - mysql -e 'create database enhavo_test'
    - composer install --no-interaction --optimize-autoloader --prefer-dist

before_script:
    - bin/console cache:warmup --env=test --no-debug
    - bin/console doctrine:schema:create --env=test
    - bin/console assets:install --env=test --no-debug
    - bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json

    - php -v
    - php -i | grep -v GITHUB_OAUTH_TOKEN

script:
  - composer validate
  - bin/behat --strict
  - bin/phpunit --stop-on-failure
  - vendor/bin/phplint
{'fraction_non_alphanumeric': 0.13183098591549297, 'fraction_numerical': 0.0067605633802816905, 'mean_word_length': 2.7232704402515724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5057006', 'n_tokens_mistral': 663, 'n_tokens_neox': 649, 'n_words': 144}