sudo: false

language: php
php:
  - 7.1
  - 7.2
  - 7.3
  - nightly

matrix:
  fast_finish: true
  allow_failures:
    - nightly

stages:
  - analyze
  - test

jobs:
  exclude:
    - php: 7.2
  include:
    - stage: analyze
      php: 7.2
      install:
        - pecl install ast
        - phpenv config-rm xdebug.ini
        - composer install --prefer-dist --ignore-platform-reqs
      script:
        - make ci-analyze --keep-going
        - composer validate

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

install:
  - phpenv config-rm xdebug.ini || true
  - composer remove --no-update --dev
      phan/phan phpstan/phpstan vimeo/psalm
      infection/infection friendsofphp/php-cs-fixer
  - composer install --prefer-dist

script:
  - make ci-test --keep-going

after_success:
  - travis_retry php vendor/bin/php-coveralls

sudo: false

language: php
php:
  - 7.1
  - 7.2
  - 7.3
  - nightly

matrix:
  fast_finish: true
  allow_failures:
    - nightly

stages:
  - analyze
  - test

jobs:
  exclude:
    - php: 7.2
  include:
    - stage: analyze
      php: 7.2
      install:
        - pecl install ast
        - phpenv config-rm xdebug.ini
        - composer install --prefer-dist
      script:
        - make ci-analyze --keep-going
        - composer validate

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

install:
  - phpenv config-rm xdebug.ini || true
  - composer remove --no-update --dev
      phan/phan phpstan/phpstan vimeo/psalm
      infection/infection friendsofphp/php-cs-fixer
  - composer install --prefer-dist

script:
  - make ci-test --keep-going

after_success:
  - travis_retry php vendor/bin/php-coveralls

Revert "phan is very picky about ast's version, work around that"
Revert "phan is very picky about ast's version, work around that"

This reverts commit cdf78fa5f0899f130439d2298eb7b6a988f36a51.
