Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Run tests on Appveyor #839

Closed
wants to merge 28 commits into from
Closed

Run tests on Appveyor #839

wants to merge 28 commits into from

Conversation

50Wliu
Copy link
Contributor

@50Wliu 50Wliu commented May 3, 2019

Let's get this working.

Functional changes:

  • Include the mingw directory in the PATH (this directory contains many of the actual git functions, such as git-pull, git-push, and git-upload-pack).
  • Search env.ProgramW6432 for Git before env.ProgramFiles, as ProgramFiles is not guaranteed to always point to the x64 Program Files directory.

Technically, we should get the mingw path from git --exec-path (and this is what the GitHub package does), but that would mean making git.addGitToEnv(env) async, which would have been a much larger PR.

@50Wliu
Copy link
Contributor Author

50Wliu commented May 4, 2019

My initial plan was to try to get this working in order to debug failures in atom/atom#19189, but annoyingly specifying x86 as a platform still seems to use an x64 image...still nice to have Windows coverage though.

Copy link
Contributor

@as-cii as-cii left a comment

Choose a reason for hiding this comment

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

This looks reasonable to me, nice job as usual @50Wliu!

Are you concerned at all about introducing unexpected changes to apm on Windows? My understanding is that this pull request was opened just to run tests on AppVeyor, but we're changing production code as well. I am cool with it, but just thought I'd raise the question.

Either way, :shipit:!

@as-cii as-cii self-assigned this Jun 24, 2019
@sadick254
Copy link
Contributor

@50Wliu We have since moved from running tests on other platforms and we are fully embracing Github Actions. For that reason, I don't think this is relevant anymore.

@sadick254 sadick254 closed this Jul 8, 2021
@50Wliu 50Wliu deleted the wl-test-on-appveyor branch July 9, 2021 00:40
aminya added a commit to atom-community/papm that referenced this pull request Aug 9, 2021
Functional changes:

- Include the mingw directory in the PATH
(this directory contains many of the actual git functions,
such as `git-pull`, `git-push`, and `git-upload-pack`).

- Search `env.ProgramW6432` for Git before `env.ProgramFiles`,
as `ProgramFiles` is not guaranteed to always point to
the x64 Program Files directory.

Technically, we should get the mingw path from `git --exec-path`
(and this is what the GitHub package does), but that would mean
making `git.addGitToEnv(env)` async,
which would have been a much larger PR.

From atom/apm#839

Co-Authored-By: Winston Liu <2766036+50Wliu@users.noreply.github.com>
aminya added a commit to atom-community/papm that referenced this pull request Aug 9, 2021
Functional changes:

- Include the mingw directory in the PATH
(this directory contains many of the actual git functions,
such as `git-pull`, `git-push`, and `git-upload-pack`).

- Search `env.ProgramW6432` for Git before `env.ProgramFiles`,
as `ProgramFiles` is not guaranteed to always point to
the x64 Program Files directory.

Technically, we should get the mingw path from `git --exec-path`
(and this is what the GitHub package does), but that would mean
making `git.addGitToEnv(env)` async,
which would have been a much larger PR.

From atom/apm#839

Co-Authored-By: Winston Liu <2766036+50Wliu@users.noreply.github.com>
aminya added a commit to atom-community/papm that referenced this pull request Aug 9, 2021
Functional changes:

- Include the mingw directory in the PATH
(this directory contains many of the actual git functions,
such as `git-pull`, `git-push`, and `git-upload-pack`).

- Search `env.ProgramW6432` for Git before `env.ProgramFiles`,
as `ProgramFiles` is not guaranteed to always point to
the x64 Program Files directory.

Technically, we should get the mingw path from `git --exec-path`
(and this is what the GitHub package does), but that would mean
making `git.addGitToEnv(env)` async,
which would have been a much larger PR.

From atom/apm#839

Co-Authored-By: Winston Liu <2766036+50Wliu@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants