-
Notifications
You must be signed in to change notification settings - Fork 54
/
.travis.yml
38 lines (31 loc) · 927 Bytes
/
.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
32
33
34
35
36
37
language: php
php:
- 7.3
- 7.4
- 8.0
env:
global:
- PHPUNIT_BIN='vendor/bin/phpunit'
- PHPUNIT_CONFIG='phpunit.xml.dist'
- PHPUNIT_FLAGS='--stop-on-failure --verbose'
- COMPOSER_FLAGS=''
matrix:
include:
- php: '7.4'
env:
- PHPUNIT_FLAGS="--stop-on-failure --verbose --coverage-text --coverage-clover=coverage.xml"
before_script:
- composer config --global repo.packagist composer https://packagist.org
- composer install $COMPOSER_FLAGS
script :
- $PHPUNIT_BIN -c $PHPUNIT_CONFIG $PHPUNIT_FLAGS
- if [ -f "coverage.xml" ]; then ./vendor/bin/php-cs-fixer fix --dry-run src/; fi
- ./bin/feedio check tests/feeds.txt
after_script:
- |
if [ -f "coverage.xml" ]; then
echo 'sending clover to Scrutinizer'
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.xml
echo 'done'
fi