<commit_before>language: php

php:
  - 5.5
  - 5.6
  - 7.0

sudo: true

matrix:
  allow_failures:
    - php: 7.0
    - php: hhvm
  fast_finish: true

before_install:
  - composer self-update --no-interaction
  - composer --version --no-interaction

env:
  - PREFER_LOWEST="--prefer-lowest"
  - PREFER_LOWEST=""

before_script:
  - composer update --prefer-source $PREFER_LOWEST
  - composer --optimize-autoloader --no-interaction

script:
  - bin/phpunit -c tests/ --coverage-clover=coverage.clover --coverage-html=./docs/coverage

after_script:
  # We upload only for reference platform! This is our base for further code analyses and so on.
  - if [ $(phpenv version-name) == "5.5" ] && [ "$PREFER_LOWEST" == "--prefer-lowest" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
  - if [ $(phpenv version-name) == "5.5" ] && [ "$PREFER_LOWEST" == "--prefer-lowest" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover > /dev/null 2>&1; fi

after_success:
  # Push coverage to github pages branch
  - chmod +x ./update-gh-pages.sh
  - bash ./update-gh-pages.sh
  # CREATE GIT TAG
  - git config --global user.email "<EMAIL>"
  - git config --global user.name "Travis"
  - export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")-$TRAVIS_BUILD_NUMBER
  - echo -n $GIT_TAG > public/version
  - git commit -m "Set build VERSION number" public/version
  - git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
  - git push --tags --quiet https://$GITHUBKEY@github.com/clickalicious/CachingMiddleware > /dev/null 2>&1

# blacklist
branches:
  except:
    - /^build-[0-9a-z\-]*/

# Who to notify?
notifications:
  email:
    recipients:
      - <EMAIL>
    on_success: always
    on_failure: change
  slack: clickalicious:$SLACKKEY
<commit_msg>Adjusted some build properties<commit_after>language: php

php:
  - 5.5
  - 5.6
  - 7.0

sudo: true

matrix:
  allow_failures:
    - php: 7.0
    - php: hhvm
  fast_finish: true

before_install:
  - composer self-update --no-interaction
  - composer --version --no-interaction

env:
  - PREFER_LOWEST="--prefer-lowest"
  - PREFER_LOWEST=""

before_script:
  - composer update --prefer-dist $PREFER_LOWEST
  - composer --optimize-autoloader --no-interaction

script:
  - bin/phpunit -c tests/ --coverage-clover=coverage.clover --coverage-html=./docs/coverage

after_script:
  # We upload only for reference platform! This is our base for further code analyses and so on.
  - if [ $(phpenv version-name) == "5.5" ] && [ "$PREFER_LOWEST" == "--prefer-lowest" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
  - if [ $(phpenv version-name) == "5.5" ] && [ "$PREFER_LOWEST" == "--prefer-lowest" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover > /dev/null 2>&1; fi

after_success:
  # Push coverage to github pages branch
  - chmod +x ./update-gh-pages.sh
  - bash ./update-gh-pages.sh
  # CREATE GIT TAG
  - git config --global user.email "<EMAIL>"
  - git config --global user.name "Travis"
  - export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")-$TRAVIS_BUILD_NUMBER
  - echo -n $GIT_TAG > public/version
  - git commit -m "Set build VERSION number" public/version
  - git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
  - git push --tags --quiet https://$GITHUBKEY@github.com/clickalicious/CachingMiddleware > /dev/null 2>&1

# blacklist
branches:
  except:
    - /^build-[0-9a-z\-]*/

# Who to notify?
notifications:
  email:
    recipients:
      - <EMAIL>
    on_success: always
    on_failure: change
  slack: clickalicious:$SLACKKEY

{'fraction_non_alphanumeric': 0.14724605590921672, 'fraction_numerical': 0.00996401882092444, 'mean_word_length': 3.0975056689342404, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '442938', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1338, 'n_words': 321}