forked from goetas-webservices/xsd-reader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 915 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
language: php
sudo: false
php:
- 7.1
- 7.2
- 7.3
- 7.4
matrix:
include:
- php: 7.1
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
cache:
directories:
- vendor
- $HOME/.composer/cache
before_script:
- if [[ $TRAVIS_PHP_VERSION = '7.1' ]] ; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else phpenv config-rm xdebug.ini; fi
- travis_retry composer self-update
- travis_retry composer update $COMPOSER_FLAGS
script:
- vendor/bin/phpunit $PHPUNIT_FLAGS
- vendor/bin/phpstan analyse -c ./phpstan.neon --level 6 src
- vendor/bin/psalm
- vendor/sebastian/phpcpd/phpcpd ./src/
- vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes --dry-run
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- if [[ $TRAVIS_PHP_VERSION = '7.1' ]] ; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi