Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PHP 8.0 #194

Merged
merged 4 commits into from
Oct 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 42 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,52 @@
language: php

php:
- 7.1
- 7.2
- 7.3
- 7.4

sudo: false

cache:
directories:
- $HOME/.composer/cache

before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-dist
- travis_retry wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar
.Unit Tests: &test-unit
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-dist $COMPOSER_FLAGS

script:
- ./vendor/bin/phpunit $PHPUNIT_FLAGS

after_script:
- if [ $COVERAGE_REPORT ]; then travis_retry wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ $COVERAGE_REPORT ]; then travis_retry php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

jobs:
include:
# Matrix Builds (7.1 - 8.0)
- <<: *test-unit
name: PHP 7.1
php: 7.1

- <<: *test-unit
name: PHP 7.2
php: 7.2

- <<: *test-unit
name: PHP 7.3
php: 7.3

- <<: *test-unit
name: PHP 7.4
php: 7.4
env: COVERAGE_REPORT=1 PHPUNIT_FLAGS="--coverage-clover=coverage.clover"

script:
- ./vendor/bin/phpunit --coverage-clover=coverage.clover
- php php-cs-fixer-v2.phar fix --dry-run --diff
- <<: *test-unit
name: PHP 8.0
php: master
env: COMPOSER_FLAGS="--ignore-platform-reqs"

after_script:
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
- travis_retry php ocular.phar code-coverage:upload --format=php-clover coverage.clover
# Code Style
- name: Code Style
php: 7.4
before_script:
- travis_retry wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar
script:
- php php-cs-fixer-v2.phar fix --dry-run --diff
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Support PHP 8.0

## [0.16.0]
### Added
- Allow to add `ATTACH` property to an event [#128](https://github.com/markuspoerschke/iCal/pull/128)
Expand Down Expand Up @@ -114,6 +118,7 @@ The former default value was set to one week. If you want the behavior from vers
- **Breaking Change:** Changed signature of the ```Event::setOrganizer``` method. Now there is is only one parameter that must be an instance of ```Property\Organizer```.
- Updated install section in README.md [#54](https://github.com/markuspoerschke/iCal/pull/53)

[Unreleased]: https://github.com/markuspoerschke/iCal/compare/0.16.0...0.x
[0.16.0]: https://github.com/markuspoerschke/iCal/compare/0.15.1...0.16.0
[0.15.1]: https://github.com/markuspoerschke/iCal/compare/0.15.0...0.15.1
[0.15.0]: https://github.com/markuspoerschke/iCal/compare/0.14.0...0.15.0
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
},
"require": {
"php": ">=7.1"
"php": ">=7.1 || ~8.0.0"
},
"suggest": {
"ext-mbstring" : "Massive performance enhancement of line folding"
Expand Down