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

Updates for PHP 7.4 and Composer 2. #89

Merged
merged 6 commits into from
Dec 10, 2020

Conversation

ruebot
Copy link
Member

@ruebot ruebot commented Dec 9, 2020

GitHub Issue:

What does this Pull Request do?

Updates for PHP 7.4 and Composer 2.

  • Update to require PHP 7.4
  • Update easyrdf to v1+
  • Update php_codesniffer to v3+
  • Update phpunit to v9+
  • Update phpcpd to v6+
  • Update tests to work with newer version of phpunit
  • Update EasyRdf namespaces since they use proper namespaces with 1.0.0
  • Update README

How should this be tested?

  • TravisCI should take care of it.

Additional Notes:

I'm fairly certain I'll need this for: Islandora/Crayfish#110

Interested parties

@rosiel @seth-shaw-unlv @dannylamb

- Update to require PHP 7.4
- Update easyrdf to v1+
- Update php_codesniffer to v3+
- Update phpunit to v9+
- Update phpcpd to v6+
- Update tests to work with newer version of phpunit
- Update EasyRdf namespaces since they use proper namespaces with 1.0.0
- Update README
@ruebot
Copy link
Member Author

ruebot commented Dec 10, 2020

I think the default branch needs to be updated on CodeCov for this repo from master to main: https://app.codecov.io/gh/Islandora/chullo/settings

@dannylamb
Copy link
Contributor

@ruebot Any chance we can cover 7.3 and 7.4 here? I'm hesitant to jump straight to 7.4 here if we don't have to.

@dannylamb
Copy link
Contributor

dannylamb commented Dec 10, 2020

Oh, I see now: https://travis-ci.org/github/Islandora-Devops/ansible-role-crayfish/jobs/748458293#L761

💩, no choice then.

@dannylamb
Copy link
Contributor

I updated the codecov settings to make dev the default branch.

@ruebot ruebot mentioned this pull request Dec 10, 2020
@ruebot
Copy link
Member Author

ruebot commented Dec 10, 2020

I'm going to change the coverage filename back to what it was previously.

@ruebot
Copy link
Member Author

ruebot commented Dec 10, 2020

🤷‍♂️ https://travis-ci.com/github/Islandora/chullo/builds/207818467#L355

No idea what's the deal there. I'm not super concerned about it if y'all aren't.

@whikloj
Copy link
Member

whikloj commented Dec 10, 2020

Just to second the question about PHP 7.3 support. I have been out of the loop but did we stop supporting it?

@elizoller
Copy link
Member

@ruebot
Copy link
Member Author

ruebot commented Dec 10, 2020

@whikloj hey Jared! It's a Composer 2 issue from what I understand, and was partially implemented in the playbook and in Crayfish. From my digging in further of the last couple days to resolve a TravisCI problem on this PR, things escalated very quickly 😓, and I'm just trying to finish the job to my current understanding. That said, not sure what the community policies are on updating PHP versions, so if that's the concern, it's completely valid. Though, I leave it up to y'all on how to proceed.

@whikloj
Copy link
Member

whikloj commented Dec 10, 2020

Thanks all (and hi Nick 👋 ), I guess this answers my question.
By the time we get to Islandora 8 it'll be on PHP 8 anyways. Will have to look in the RHEL software collections library to see how far I can get before it stops.

@dannylamb
Copy link
Contributor

FWIW ISLE is already on php 7.4, which is why i never noticed it when moving everything over to composer 2 for it

@dannylamb
Copy link
Contributor

IMO we can just fix codecov later. I'd rather move on, since this is blocking some sprint things. Let's just be sure to advertise this change when releasing. Sounds like the kinda thing that warrants a changelog entry.

@elizoller
Copy link
Member

so what does this need? someone to pull it in, composer install, and make sure chullo still works?

Copy link
Member

@elizoller elizoller left a comment

Choose a reason for hiding this comment

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

I can't speak to the code-cov piece but this is what I did to test:
i have a d9 box (built from that islandora-playbook PR #196), i went into /var/www/html/drupal/vendora/islandora/chullo and checked out pull/89 and then ran composer install in there and then i went to islandora and made an item and verified it made it to fedora.

@ruebot
Copy link
Member Author

ruebot commented Dec 10, 2020

CodeCov bit will hopefully work itself out after a merge 🤞

@elizoller elizoller merged commit 3a971f1 into Islandora:dev Dec 10, 2020
@ruebot ruebot deleted the update-to-php-7.4 branch December 10, 2020 19:11
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.

4 participants