-
Notifications
You must be signed in to change notification settings - Fork 788
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
appveyor.yml: Add support for Windows #451
Conversation
I ran it, you can have a look at https://ci.appveyor.com/project/abhishalya/asdf I guess the failure is because of something mentioned here and here. Any workarounds? |
Everyone there is saying migrate to https://github.com/bats-core/bats-core . It should be compatible, so you could try just using that instead here. If you find it isnt ompatible, create a new PR to upgrade the test suite to bats-core, then return to this after it is merged. |
18a3703
to
36e5cf5
Compare
Lots of tests are lost in making the CI green. |
66a6d42
to
64ab0ff
Compare
I've done a build without the
Therefore the best cost:benefit for getting more tests operation is in debugging failures in utils.bats and version_commands.bats . One of the biggest problems which is easy to fix is that in your test environment > git grep 'find ' lib
lib/commands/which.sh: location=$(find -L "$full_executable_path" -maxdepth 4 -name "$command" -type f -perm -u+x | sed -e 's|//|/|g')
lib/utils.sh: find_result=$(find "$update_file_dir" -name "$update_file_name" -type f -mtime +1 -print) So set up your test environment so find is a GNU find. Probably similar problems exist with other executables. |
@jayvdb I tried to debug all failing tests, I found that some asdf commands don't work properly on windows. For ex, the The ideal way to make CI green would be to fix the commands such that they work on windows as well as on linux. Since there are lot of failing tests, we need to work step by step. Let me know your thoughts. |
64ab0ff
to
81270b6
Compare
I used cygwin bash, and a lot of tests pass which were not passing earlier. But still, there are failing tests which I verified on WSL. So, WSL is not completely supported yet, I'll try to find out the cause of the failures and will update this then. You can have a look at log here. |
81270b6
to
c226166
Compare
@jayvdb Just one test failing now. |
@abhishalya thanks for all your work on this. I've fallen behind when it comes to reviewing PRs recently. I think it would be nice to be able to support Windows, at least to some degree. I just updated our build to use the |
Sorry, I guess rebasing wouldn't help since I only changed the Travis build for Linux and OSX. Disregard that part of my last comment. |
@Stratus3D Can you have a look at the build log, there was just one failing test. Maybe you can help me fill the environment difference between the Linux and Windows.
|
I see the failure. I will look at that test tonight and see if I can figure out what it's doing differently. I remember coming across an invalid test when working on #520. |
@Stratus3D Can you have a look at this again :) |
This runs the tests on Appveyor CI (basically windows) so as to keep it from breaking. Closes asdf-vm#450
@abhishalya sorry for the late reply. I'm going to go ahead and merge this PR so we can get this config on the master branch. We may still have some issues to work through, but I think it's good to have builds running on windows. Thanks for all your work on this! |
Well done @abhishalya ! |
Summary
This adds support for windows through Appveyor CI.
Closes #450