<commit_before>sudo: false
dist: trusty
language: php

matrix:
  fast_finish: true
  include:
  - php: 5.5
  - php: 5.6
  - php: 7.0
  - php: 7.1
  - php: nightly
  - php: hhvm
  - php: hhvm-nightly
  allow_failures:
  - php: nightly
  - php: hhvm
  - php: hhvm-nightly

before_script:
  - composer selfupdate --quiet
  - composer install --prefer-dist --no-interaction --no-progress
  # Disable JIT compilation in hhvm, as the JIT is useless for short live scripts like tests.
  - if [[ $TRAVIS_PHP_VERSION = hhvm* ]]; then echo 'hhvm.jit = 0' >> /etc/hhvm/php.ini; fi

script:
  - make test

before_deploy:
  - make build
  - git add -f build/phpmetrics.deb build/phpmetrics.phar

deploy:
  - provider: releases
    api_key:
      secure: <KEY>
    file:
      - "releases/phpmetrics.phar"
    on:
      repo: phpmetrics/PhpMetrics
      tags: true
      php: '7.0'
    skip_cleanup: true
  - provider: bintray
    file: artifacts/bintray.json
    user: "halleck45"
    key:
      secure: <KEY>
    on:
      repo: phpmetrics/PhpMetrics
      tags: true<commit_msg>fix: disabled deb artifact in travis<commit_after>sudo: false
dist: trusty
language: php

matrix:
  fast_finish: true
  include:
  - php: 5.5
  - php: 5.6
  - php: 7.0
  - php: 7.1
  - php: nightly
  - php: hhvm
  - php: hhvm-nightly
  allow_failures:
  - php: nightly
  - php: hhvm
  - php: hhvm-nightly

before_script:
  - composer selfupdate --quiet
  - composer install --prefer-dist --no-interaction --no-progress
  # Disable JIT compilation in hhvm, as the JIT is useless for short live scripts like tests.
  - if [[ $TRAVIS_PHP_VERSION = hhvm* ]]; then echo 'hhvm.jit = 0' >> /etc/hhvm/php.ini; fi

script:
  - make test

before_deploy:
  - make build
  - git add -f build/phpmetrics.phar # build/phpmetrics.deb 

deploy:
  - provider: releases
    api_key:
      secure: <KEY>
    file:
      - "releases/phpmetrics.phar"
    on:
      repo: phpmetrics/PhpMetrics
      tags: true
      php: '7.0'
    skip_cleanup: true
  - provider: bintray
    file: artifacts/bintray.json
    user: "halleck45"
    key:
      secure: <KEY>
    on:
      repo: phpmetrics/PhpMetrics
      tags: true
{'fraction_non_alphanumeric': 0.11296296296296296, 'fraction_numerical': 0.012037037037037037, 'mean_word_length': 2.397798742138365, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '1484382', 'n_tokens_mistral': 869, 'n_tokens_neox': 830, 'n_words': 218}