krixon/rules

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: php

php:
  - 7.2
  - 7.3
  - 7.4

env:
  - DEPENDENCIES=standard
  - DEPENDENCIES=lowest
  - DEPENDENCIES=highest

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

install:
  - if [ "$DEPENDENCIES" = "standard" ]; then composer install --prefer-dist; fi;
  - if [ "$DEPENDENCIES" = "lowest" ]; then composer update --prefer-dist --prefer-lowest -n; fi;
  - if [ "$DEPENDENCIES" = "highest" ]; then composer update --prefer-dist -n; fi;

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

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