Skip to content

Commit 49169d0

Browse files
committed
Adjust boolean vars in .travis.yml to prepare for PHP8.0
1 parent e893c7d commit 49169d0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.travis.yml

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

88
env:
99
global:
10+
- RUN_PHPCSFIXER="TRUE"
11+
- RUN_PHPUNIT="TRUE"
1012
- RUN_PHPSTAN="FALSE"
1113
matrix:
1214
- PREFER_LOWEST="" REPORT_COVERAGE="TRUE" WITH_COVERAGE="--coverage-clover=coverage.xml"
@@ -17,16 +19,19 @@ matrix:
1719
- name: 'PHPStan'
1820
php: 7.4
1921
env:
22+
- RUN_PHPCSFIXER="FALSE"
23+
- RUN_PHPUNIT="FALSE"
2024
- RUN_PHPSTAN="TRUE"
2125
- REPORT_COVERAGE="FALSE"
2226
fast_finish: true
2327

2428
before_script:
29+
- if [ $RUN_PHPCSFIXER == "FALSE" ]; then composer remove --dev friendsofphp/php-cs-fixer; fi
2530
- composer update $PREFER_LOWEST
2631

2732
script:
28-
- if [ $RUN_PHPSTAN == "FALSE" ]; then php vendor/bin/php-cs-fixer fix --dry-run --diff; fi
29-
- if [ $RUN_PHPSTAN == "FALSE" ]; then php vendor/bin/phpunit --configuration tests/phpunit.xml $WITH_COVERAGE; fi
33+
- if [ $RUN_PHPCSFIXER == "TRUE" ]; then php vendor/bin/php-cs-fixer fix --dry-run --diff; fi
34+
- if [ $RUN_PHPUNIT == "TRUE" ]; then php vendor/bin/phpunit --configuration tests/phpunit.xml $WITH_COVERAGE; fi
3035
- if [ $RUN_PHPSTAN == "TRUE" ]; then composer phpstan; fi
3136

3237
after_success:

0 commit comments

Comments
 (0)