-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (24 loc) · 1.46 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
language: php
git:
depth: 1
cache:
directories:
- $HOME/.composer
env:
global:
- PHP_CS_FIXER_IGNORE_ENV=1
php:
- 7.1
- 7.2
before_script:
- composer install
- composer require phpunit/phpunit satooshi/php-coveralls
- wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.10.3/php-cs-fixer.phar -O php-cs-fixer
- chmod +x ./php-cs-fixer
- mkdir -p tests/coverage
script:
- ./php-cs-fixer fix --dry-run --diff
- phpunit --coverage-text --coverage-clover ./tests/coverage/clover.xml
after_script:
- travis_retry php vendor/bin/php-coveralls -v