<commit_before>language: php
php: [ 7.1, 7.2, nightly ]
sudo: false

branches:
except: /^(\S*)-nightly-(\S*)$/

env:

matrix:
  fast_finish: true
  allow_failures:
    - php: nightly

before_install: |
  if [[ "$TRAVIS_PULL_REQUEST_SLUG" == "" || "$TRAVIS_PULL_REQUEST_SLUG" == "$TRAVIS_REPO_SLUG" ]];then
    openssl aes-256-cbc -K $encrypted_f23adc84ec09_key -iv $encrypted_f23adc84ec09_iv -in .travis/secrets.tar.enc -out .travis/secrets.tar -d
    tar xvf .travis/secrets.tar -C .travis
  fi

install:
  - composer install --no-interaction --prefer-dist --optimize-autoloader
install:
  - travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
  - travis_retry composer global require phpunit/phpunit ^6 # cannot use phpunit.phar or require-dev, because this package is a phpunit dep
  - travis_retry wget --no-verbose https://phar.io/releases/phive.phar
script:
  - /home/travis/.composer/vendor/bin/phpunit --no-coverage
  - bin/behat -p default

jobs:
  include:
    - stage: test
      php: 7.1
      script:
        - ./bin/phpdoc run

    - stage: test
      php: 7.1
      script:
        - php ./bin/console --env=prod cache:warm
        - php -d phar.readonly=false tools/box.phar compile
        - bin/behat -p phar
        - php build/phpDocumentor.phar run

    - stage: coverage
      php: 7.1
      script:
        - /home/travis/.composer/vendor/bin/phpunit
      after_script:
        - travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
        - travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

    - stage: lint
      php: 7.1
      services:<commit_msg>stage named test seems to cause unexpected things<commit_after>language: php
php: [ 7.1, 7.2, nightly ]
sudo: false

branches:
except: /^(\S*)-nightly-(\S*)$/

env:

matrix:
  fast_finish: true
  allow_failures:
    - php: nightly

before_install: |
  if [[ "$TRAVIS_PULL_REQUEST_SLUG" == "" || "$TRAVIS_PULL_REQUEST_SLUG" == "$TRAVIS_REPO_SLUG" ]];then
    openssl aes-256-cbc -K $encrypted_f23adc84ec09_key -iv $encrypted_f23adc84ec09_iv -in .travis/secrets.tar.enc -out .travis/secrets.tar -d
    tar xvf .travis/secrets.tar -C .travis
  fi

install:
  - travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
  - travis_retry composer global require phpunit/phpunit ^6 # cannot use phpunit.phar or require-dev, because this package is a phpunit dep
  - travis_retry wget --no-verbose https://phar.io/releases/phive.phar
script:
  - /home/travis/.composer/vendor/bin/phpunit --no-coverage
  - bin/behat -p default

jobs:
  include:
    - stage: dogfood
      php: 7.1
      script:
        - ./bin/phpdoc run

    - stage: test
      php: 7.1
      script:
        - php ./bin/console --env=prod cache:warm
        - php -d phar.readonly=false tools/box.phar compile
        - bin/behat -p phar
        - php build/phpDocumentor.phar run

    - stage: coverage
      php: 7.1
      script:
        - /home/travis/.composer/vendor/bin/phpunit
      after_script:
        - travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
        - travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

    - stage: lint
      php: 7.1
      services:
{'fraction_non_alphanumeric': 0.12703309029725182, 'fraction_numerical': 0.02131239484015704, 'mean_word_length': 2.6286876907426246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4495044', 'n_tokens_mistral': 1395, 'n_tokens_neox': 1316, 'n_words': 286}