Skip to content

Commit a29989b

Browse files
committed
update ci settings
1 parent 1a6262c commit a29989b

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.travis.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
language: php
22

33
php:
4-
- 7.2
5-
- 7.3
6-
- 7.4snapshot
7-
8-
matrix:
9-
allow_failures:
10-
- php: 7.4snapshot
4+
- 7.4
115

126
cache:
137
directories:
@@ -19,16 +13,14 @@ before_script:
1913

2014
install:
2115
- travis_retry composer install --no-interaction --no-suggest
22-
- travis_retry wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar
23-
- chmod +x ocular.phar
24-
- composer show
2516

2617
script:
2718
- ./vendor/bin/phpunit --configuration ./phpunit.xml --coverage-clover=coverage.clover
28-
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then ./vendor/bin/psalm --config=psalm.xml; fi
29-
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then ./vendor/bin/phpstan analyse src --level 7; fi
30-
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then ./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run; fi
19+
- if [ $TRAVIS_PHP_VERSION = "7.4" ]; then ./vendor/bin/psalm --config=psalm.xml; fi
20+
- if [ $TRAVIS_PHP_VERSION = "7.4" ]; then ./vendor/bin/phpstan analyse src --level 7; fi
21+
- if [ $TRAVIS_PHP_VERSION = "7.4" ]; then ./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run; fi
3122

3223
after_script:
33-
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar; fi
24+
- if [ $TRAVIS_PHP_VERSION = "7.4" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
25+
- if [ $TRAVIS_PHP_VERSION = "7.4" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi fi
3426
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

0 commit comments

Comments
 (0)