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

Test with PHP8.0 #82

Merged
merged 2 commits into from
Oct 3, 2020
Merged

Conversation

phil-davis
Copy link
Contributor

@phil-davis phil-davis commented Oct 3, 2020

  1. sort out variables in .travis.yml for selecting to run php-cs-fixer, phpunit and phpstan
  2. Add a matrix entry to run just phpunit on Ubuntu 20.04 "focal" with "nightly" PHP (which is the way to get PHP 8.0 at the moment)
  3. When not running php-cs-fixer, explicitly remove it from composer.json (because php-cs-fixer does not yet support PHP 8.0, so composer cannot sort out dependencies if we have PHP 8.0 and php-cs-fixer 2.* together)

Note: PR #77 actually enabled PHP 8.0 in composer.json already, so this PR just gets CI running the unit tests with PHP 8.0

@phil-davis phil-davis self-assigned this Oct 3, 2020
@codecov
Copy link

codecov bot commented Oct 3, 2020

Codecov Report

Merging #82 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #82   +/-   ##
=========================================
  Coverage     99.72%   99.72%           
  Complexity      111      111           
=========================================
  Files             9        9           
  Lines           364      364           
=========================================
  Hits            363      363           
  Misses            1        1           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a37c73e...5fbdc16. Read the comment docs.

@phil-davis
Copy link
Contributor Author

https://travis-ci.org/github/sabre-io/event/jobs/732476526 on PHP 8.0

OK (86 tests, 143 assertions)

good

@phil-davis phil-davis marked this pull request as ready for review October 3, 2020 09:20
@@ -16,7 +16,7 @@
"homepage": "http://sabre.io/event/",
"license": "BSD-3-Clause",
"require": {
"php": "^7.1|^8.0"
"php": "^7.1 || ^8.0"
Copy link
Contributor Author

@phil-davis phil-davis Oct 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I adjusted this to have the same || or format as in other repos, just to be consistent.

@phil-davis phil-davis merged commit b755c9c into sabre-io:master Oct 3, 2020
@phil-davis phil-davis deleted the test-with-php-8.0 branch October 3, 2020 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants