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

sudo: false

cache:
   directories:
     - $HOME/.composer/cache/files

env:
  - SHOPWARE_VERSION: 5.2
  - SHOPWARE_VERSION: 5.3

before_script:
    - git clone https://github.com/shopware/shopware.git /tmp/shopware
    - cd /tmp/shopware
    - git checkout $SHOPWARE_VERSION

    - mv /home/travis/build/shopware/SwagConnect /tmp/shopware/engine/Shopware/Plugins/Local/Backend/SwagConnect
    - cd /tmp/shopware/engine/Shopware/Plugins/Local/Backend/SwagConnect
    - mkdir -p build/logs
    - 'if [ "$TRAVIS_BRANCH" != "master" ] || [ $SHOPWARE_VERSION != "5.3" ] || [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then phpenv config-rm xdebug.ini; fi'
    - composer install
    - ln -sf vendor/shopware/plugin-dev-tools/psh56.phar psh56
    - ./psh56 travis:init

script:
    - 'if [ "$TRAVIS_BRANCH" != "master" ] || [ $SHOPWARE_VERSION != "5.3" ] || [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then ./psh56 travis:unit; fi'
    - 'if [ "$TRAVIS_BRANCH" = "master" ] && [ $SHOPWARE_VERSION = "5.3" ] && [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then ./psh56 travis:unit-coveralls; fi'

notifications:
    email: false

after_success:
  - travis_retry ./psh56 travis:send-coverall-report<commit_msg>[CON-4974] Deactivate xdebug for travis<commit_after>language: php
php:
  - 5.6
  - 7.0

sudo: false

cache:
   directories:
     - $HOME/.composer/cache/files

env:
  - SHOPWARE_VERSION: 5.2
  - SHOPWARE_VERSION: 5.3

before_script:
    - git clone https://github.com/shopware/shopware.git /tmp/shopware
    - cd /tmp/shopware
    - git checkout $SHOPWARE_VERSION

    - mv /home/travis/build/shopware/SwagConnect /tmp/shopware/engine/Shopware/Plugins/Local/Backend/SwagConnect
    - cd /tmp/shopware/engine/Shopware/Plugins/Local/Backend/SwagConnect
    - mkdir -p build/logs
    - 'if [ "$TRAVIS_BRANCH" != "master" ] || [ $SHOPWARE_VERSION != "5.3" ] || [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then phpenv config-rm xdebug.ini; fi'
    - composer install
    - ln -sf vendor/shopware/plugin-dev-tools/psh56.phar psh56
    - ./psh56 travis:init

script:
    - php --version
    - 'if [ "$TRAVIS_BRANCH" != "master" ] || [ $SHOPWARE_VERSION != "5.3" ] || [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then ./psh56 travis:unit; fi'
    - 'if [ "$TRAVIS_BRANCH" = "master" ] && [ $SHOPWARE_VERSION = "5.3" ] && [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then ./psh56 travis:unit-coveralls; fi'

notifications:
    email: false

after_success:
  - travis_retry ./psh56 travis:send-coverall-report
{'fraction_non_alphanumeric': 0.1656, 'fraction_numerical': 0.0272, 'mean_word_length': 3.1134868421052633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1005080', 'n_tokens_mistral': 1024, 'n_tokens_neox': 997, 'n_words': 171}