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

CI over Windows #207

Merged
merged 5 commits into from
Sep 7, 2021
Merged

CI over Windows #207

merged 5 commits into from
Sep 7, 2021

Conversation

paulo-ferraz-oliveira
Copy link
Collaborator

@paulo-ferraz-oliveira paulo-ferraz-oliveira commented Sep 7, 2021

Hopefully Closes #180.

@paulo-ferraz-oliveira paulo-ferraz-oliveira changed the title Check CI with Windows CI over Windows Sep 7, 2021
Makes for shorter roundtrip while doing the ol' pull-request-push-crash-fix-rinse-and-repeat
Nice opportunity to check if the caching mechanism was well introduced
@@ -374,7 +374,12 @@ find_file_and_check_src(_Config) ->
[] = elvis_file:find_files(Dirs, "doesnt_exist.erl"),
[File] = elvis_file:find_files(Dirs, "small.erl"),

{<<"-module(small).\n">>, _} = elvis_file:src(File),
{<<"-module(small).", LineBreak/binary>>, _} = elvis_file:src(File),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👀

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch!

@elbrujohalcon elbrujohalcon merged commit fd22d09 into inaka:master Sep 7, 2021
@paulo-ferraz-oliveira paulo-ferraz-oliveira deleted the feature/windows-ci branch September 7, 2021 11:36
= case os:type() of
{unix, _} -> <<"\n">>;
{win32, _} -> <<"\r\n">>
end,
Copy link
Contributor

Choose a reason for hiding this comment

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

^ This approach will not work as expected if someone clones the elvis_core repo with auto-conversion from \n to \n\r\ disabled, but that should be a very rare occurrence (and people developing Erlang on Windows are already rare enough to start with)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I thought about that edge case, but was mostly interested in the CI. If it breaks for somebody we'll deal with it then.

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.

Run CI on a Windows container
3 participants