.travis.yml 580 Bytes
Newer Older
Markus Poerschke's avatar
Markus Poerschke committed
1 2 3
language: php

php:
Markus Poerschke's avatar
Markus Poerschke committed
4
  - 7.0
5
  - 7.1
Markus Poerschke's avatar
Markus Poerschke committed
6

7 8 9 10 11 12
sudo: false

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

Markus Poerschke's avatar
Markus Poerschke committed
13
before_script:
14 15
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-dist
16
  - travis_retry wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar
Markus Poerschke's avatar
Markus Poerschke committed
17

18 19
script:
  - ./vendor/bin/phpunit --coverage-clover=coverage.clover
20
  - php php-cs-fixer-v2.phar fix --dry-run --diff
21 22

after_script:
23 24
  - travis_retry wget https://scrutinizer-ci.com/ocular.phar
  - travis_retry php ocular.phar code-coverage:upload --format=php-clover coverage.clover