sudo: false

language: php

dist: trusty

matrix:
  include:
    - php: 5.6
    - php: 7.0
    - php: 7.1
      env: ANALYSIS='true'
    - php: hhvm
    - php: 5.6
      env: COMPOSER_ARGS='--prefer-lowest'
    - php: nightly
  allow_failures:
    - php: nightly

before_script:
  - composer update $COMPOSER_ARGS

script:
  - if [[ "$ANALYSIS" != 'true' ]]; then vendor/bin/phpunit ; fi
  - if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
  - if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpcs ; fi

after_script:
  - if [[ "$ANALYSIS" == 'true' ]]; then php vendor/bin/coveralls --coverage_clover=clover.xml -v ; fi

notifications:
  slack: slimphp:0RNzx2JuhkAqIf0MXcUZ0asT

sudo: false

language: php

dist: trusty

matrix:
  include:
    - php: 7.0
    - php: 7.1
      env: ANALYSIS='true'
    - php: nightly
  allow_failures:
    - php: nightly

before_script:
  - composer update $COMPOSER_ARGS

script:
  - if [[ "$ANALYSIS" != 'true' ]]; then vendor/bin/phpunit ; fi
  - if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
  - if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpcs ; fi

after_script:
  - if [[ "$ANALYSIS" == 'true' ]]; then php vendor/bin/coveralls --coverage_clover=clover.xml -v ; fi

notifications:
  slack: slimphp:0RNzx2JuhkAqIf0MXcUZ0asT

Remove HHVM and PHP 5.6 from Travis configuration
Remove HHVM and PHP 5.6 from Travis configuration
