language: php

php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4snapshot

env:
  - BRICK_MATH_VERSION=~0.7.3
  - BRICK_MATH_VERSION=~0.8.0

matrix:
  allow_failures:
    - php: 7.4snapshot

before_script:
  - composer require brick/math:${BRICK_MATH_VERSION}

script:
  - mkdir -p build/logs
  - vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
  - vendor/bin/php-coveralls -v

language: php

php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4snapshot

matrix:
  include:
    - php: 7.1.0
      env: dependencies=lowest
  allow_failures:
    - php: 7.4snapshot

before_script:
  - if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-stable; else composer update; fi;

script:
  - mkdir -p build/logs
  - vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
  - vendor/bin/php-coveralls -v

Use composer's --prefer-lowest on Travis CI
Use composer's --prefer-lowest on Travis CI
