Skip to content

Commit 35746d0

Browse files
committed
update travis config
1 parent 3476f61 commit 35746d0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.travis.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: php
22

33
php:
44
- 7.3
5-
- 7.4snapshot
5+
- 7.4
66

77
services:
88
- redis-server
@@ -17,15 +17,13 @@ before_script:
1717

1818
install:
1919
- travis_retry composer install --no-interaction --no-suggest
20-
- travis_retry wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar
21-
- chmod +x ocular.phar
22-
- composer show
2320

2421
script:
2522
- ./vendor/bin/phpunit --configuration ./phpunit.xml --coverage-clover=coverage.clover
26-
- if [ "$TRAVIS_PHP_VERSION" == "7.4snapshot"]; then ./vendor/bin/psalm --config=psalm.xml; fi
27-
- if [ "$TRAVIS_PHP_VERSION" == "7.4snapshot"]; then ./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run; fi
23+
- if [ $TRAVIS_PHP_VERSION = "7.4" ]; then ./vendor/bin/psalm --config=psalm.xml; fi
24+
- if [ $TRAVIS_PHP_VERSION = "7.4" ]; then ./vendor/bin/phpstan analyse src --level 7; fi
25+
- if [ $TRAVIS_PHP_VERSION = "7.4" ]; then ./vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run; fi
2826

2927
after_script:
30-
- if [ "$TRAVIS_PHP_VERSION" == "7.4snapshot"]; then wget -c -nc --retry-connrefused --tries=0 https://scrutinizer-ci.com/ocular.phar; fi
31-
- if [ "$TRAVIS_PHP_VERSION" == "7.4snapshot"]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
28+
- if [ $TRAVIS_PHP_VERSION = "7.4" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
29+
- if [ $TRAVIS_PHP_VERSION = "7.4" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

0 commit comments

Comments
 (0)