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

[WIP] Update Windows compatibility #276

Closed
wants to merge 18 commits into from

Conversation

pierredup
Copy link
Contributor

Fixes #193

This PR adds a Appveyor configuration to run CI on Windows machines, and also tries to address some windows compatibility.

There are currrently a lot of failures related to path names (See an example of some of the build failures: https://ci.appveyor.com/project/pierredup/box/build/job/yv2tts08s4ilxft4)) which needs to be updated first to get as much tests as possible to pass, so that the actual Windows issues can be clearly identified.

Appveyor will need to be enabled for this repository, so that all future builds can run against windows to ensure compatibility doesn't break.

@theofidry
Copy link
Member

theofidry commented Sep 12, 2018

Thanks for looking into this, IIRC @c33s could be interested in it as well :)

Maybe a utility function could be added for normalizing the paths in the tests rather than having to deal with DIRECTORY_SEPARATOR all the time?

Note: I'll enabled AppVeyor on the repo as soon as you think this PR is good

@@ -1126,7 +1126,7 @@ public function test_the_blacklist_input_may_refer_to_non_existent_paths(): void
{
$this->setConfig([
'blacklist' => [
'/nowhere',
($this->isWindows() ? 'C:' : '') . '/nowhere',
Copy link

Choose a reason for hiding this comment

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

Shouldn't the path be C:\nowhere?

@c33s
Copy link

c33s commented Oct 22, 2018

do we need DIRECTORY_SEPARATOR at all? https://dev.to/c33s/always-use--as-directory-seperator-in-php-43l7

@theofidry
Copy link
Member

I'll be closing this. If one is ready to take up the task once again now GitHub actions supports Windows.

@theofidry theofidry closed this Oct 21, 2023
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.

Add windows compatibility
4 participants