Skip to content

Create code coverage during the CI builds #213

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

Merged
merged 1 commit into from
May 3, 2021

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