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

Improve InstallViaComposerTest #5267

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

sanmai
Copy link
Contributor

@sanmai sanmai commented Nov 14, 2020

This PR:

  • Changes the test to clone only one level deep. This is faster.
  • Changes commit op to work without GPG signing. If it was configured on the system level, the commit will fail.

Extracted from #5262

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
sanmai Alexey Kopytko
@sanmai sanmai force-pushed the InstallViaComposerTest branch from c94b3f5 to 7657d9c Compare November 14, 2020 09:15
@sanmai sanmai changed the base branch from 2.16 to 2.15 November 14, 2020 09:20
@SpacePossum
Copy link
Contributor

Thank you @sanmai.

@SpacePossum SpacePossum merged commit 3a9af85 into PHP-CS-Fixer:2.15 Nov 16, 2020
@SpacePossum SpacePossum removed the RTM Ready To Merge label Nov 16, 2020
@sanmai sanmai deleted the InstallViaComposerTest branch November 16, 2020 10:18
];
$stepsToPrepareArtifact = [
// Configure git user for new repo to not use global git user.
// We need this, as global git user may not be set!
'git config user.name test && git config user.email test',
// Adjust cloned project to expose version in `composer.json`.
// Without that, it would not be possible to use it as Composer Artifact.
"composer config version {$fakeVersion} && git add . && git commit -m 'provide version'",
"composer config version {$fakeVersion} && git add . && git commit --no-gpg-sign -m 'provide version'",
Copy link
Member

Choose a reason for hiding this comment

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

isn't no-gpg-sign default , @sanmai ?

Copy link
Contributor Author

@sanmai sanmai Nov 16, 2020

Choose a reason for hiding this comment

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

Yes and no. You can configure Git to sign all commits everywhere, by default. And then this test will fail.

E.g. with:

git config --global commit.gpgsign true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants