Skip to content

Commit e28b39e

Browse files
authored
Merge pull request #15 from phil-davis/test-with-php-8.0
Test with PHP 8.0
2 parents e893c7d + 9ad67d3 commit e28b39e

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.travis.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,37 @@ 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"
1315
- PREFER_LOWEST="--prefer-lowest" REPORT_COVERAGE="FALSE" WITH_COVERAGE=""
1416

1517
matrix:
1618
include:
19+
- name: 'PHP8'
20+
dist: focal
21+
php: nightly
22+
env:
23+
- RUN_PHPCSFIXER="FALSE"
24+
- REPORT_COVERAGE="FALSE"
1725
- name: 'PHPStan'
1826
php: 7.4
1927
env:
28+
- RUN_PHPCSFIXER="FALSE"
29+
- RUN_PHPUNIT="FALSE"
2030
- RUN_PHPSTAN="TRUE"
2131
- REPORT_COVERAGE="FALSE"
2232
fast_finish: true
2333

2434
before_script:
35+
- if [ $RUN_PHPCSFIXER == "FALSE" ]; then composer remove --dev friendsofphp/php-cs-fixer; fi
2536
- composer update $PREFER_LOWEST
2637

2738
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
39+
- if [ $RUN_PHPCSFIXER == "TRUE" ]; then php vendor/bin/php-cs-fixer fix --dry-run --diff; fi
40+
- if [ $RUN_PHPUNIT == "TRUE" ]; then php vendor/bin/phpunit --configuration tests/phpunit.xml $WITH_COVERAGE; fi
3041
- if [ $RUN_PHPSTAN == "TRUE" ]; then composer phpstan; fi
3142

3243
after_success:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"homepage": "http://sabre.io/dav/",
1111
"license": "BSD-3-Clause",
1212
"require": {
13-
"php" : "^7.1",
13+
"php" : "^7.1 || ^8.0",
1414
"sabre/xml" : "^2.0"
1515
},
1616
"authors": [

0 commit comments

Comments
 (0)