Skip to content

Conversation

@oliverklee
Copy link
Collaborator

The code coverage is only created for one PHP version (the highest version)
per build as there is no point to have multiple code coverage uploads
for the same code change.

@oliverklee oliverklee marked this pull request as ready for review April 21, 2021 17:55
@oliverklee
Copy link
Collaborator Author

Note: This needs the secret CODACY_PROJECT_TOKEN set in the GitHub repository configuration to work.

Comment on lines 20 to 46
include:
- php-version: 5.3
coverage: none
- php-version: 5.4
coverage: none
- php-version: 5.5
coverage: none
- php-version: 5.6
coverage: none
- php-version: 7.0
coverage: none
- php-version: 7.1
coverage: none
- php-version: 7.2
coverage: none
- php-version: 7.3
coverage: none
- php-version: 7.4
coverage: xdebug
Copy link

Choose a reason for hiding this comment

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

This could be made simpler with:

Suggested change
include:
- php-version: 5.3
coverage: none
- php-version: 5.4
coverage: none
- php-version: 5.5
coverage: none
- php-version: 5.6
coverage: none
- php-version: 7.0
coverage: none
- php-version: 7.1
coverage: none
- php-version: 7.2
coverage: none
- php-version: 7.3
coverage: none
- php-version: 7.4
coverage: xdebug
php-version: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3']
coverage: ['none']
include:
- php-version: 7.4
coverage: xdebug

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, @pierlon!

Copy link
Collaborator

@sabberworm sabberworm Apr 26, 2021

Choose a reason for hiding this comment

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

@oliverklee is there a reason you haven’t followed @pierlon’s suggestion? 52aac78 isn’t included in the proposed changeset.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think I included it. Possibly it got lost when I squashed or rebased. I'll update this PR and repush.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed and repushed.

The code coverage is only created for one PHP version (the highest version)
per build as there is no point to have multiple code coverage uploads
for the same code change.
@oliverklee oliverklee requested a review from sabberworm May 1, 2021 13:47
@sabberworm sabberworm merged commit 4ae4fd8 into MyIntervals:master May 3, 2021
@oliverklee oliverklee deleted the feature/coverage branch May 3, 2021 16:10
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.

3 participants