heiglandreas/DateIntervalComparator

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
sudo: false
language: php
matrix:
  include:
  - php: 7.1
  - php: 7.2
  - php: 7.3
  - php: 7.4
    env:
    - EXECUTE_CS_CHECK=true
    - EXECUTE_TEST_COVERALLS=true
  - php: nightly
  allow_failures:
  - php: nightly
  - php: 7.1

before_install:
  - if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini ||
    return 0 ; fi
  - composer self-update
  - if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update
    php-coveralls/php-coveralls ; fi
  - if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer require --dev --no-update
    friendsofphp/php-cs-fixer ; fi
install:
  - travis_retry composer install --no-interaction
script:
  - if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit -c phpunit.travis.xml
    --coverage-clover clover.xml ; fi
  - if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit -c phpunit.travis.xml;
    fi
  - if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff
    --dry-run ; fi
after_success:
  - if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then travis_retry php ./vendor/bin/php-coveralls -v ; fi