-
Notifications
You must be signed in to change notification settings - Fork 171
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
cygwin support #167
cygwin support #167
Conversation
Does travis offer any way to test it? |
Maybe appveyor support windows and cygwin. https://www.appveyor.com/docs/installed-software/#mingw-msys-cygwin |
Hi! Automated testing after each commit in CI requires some work and decisions. Firstly - bats must be able to run under cygwin in order to run sbt-extras' tests which will prove that it behaves nicely under cygwin. There is some work done (in LeahCim/bats fork) towards this direction, but it's not merged so far. LeahCim/bats is developed practically on top of master of original sstephenson/bats (it does not contain changes from particular text file). On the other hand LeahCim/bats is not fully compatible but maybe it's enough to test sbt-extras and it's worth to use it for price of having tested cygwin. Secondly - it has to be run on agent which supports cygwin. As @xuwei-k notices approyer is one possible choice. Let me do some research on "firstly" thing. |
I am almost there. This is build log from appveyor which runs test under cygwin on windows. Tests are mainly failing with assertion messages very similar to this one:
As one can see only prefix of To some_path are different. This is because
Windows like path in this example is Now it is sufice to make some replacement in The tricky part for me is that I don't know how to use Can someone help? |
@pawelpanasewicz If I understand correctly having barely skimmed and running out the door, this might do it. Replace
|
@paulp Thanks! I've manage to run it. Unfortunately tests are not passing. At first glance outputs are the same. I did some CRLF => LF convertion hoping it will solve the problem but it didn't helped. Not sure what can cause problems. I'll think on it. https://ci.appveyor.com/project/pawelpanasewicz/sbt-extras/build/1.0.22 Briefly some test failures look like this:
|
It looks like we have sbt-extras working under both linux and cygwin. https://ci.appveyor.com/project/pawelpanasewicz/sbt-extras/build/1.0.38 |
@pawelpanasewicz Great work! It restores a little of my faith in humanity to see a contribution of this kind. Probably I have to flip a switch somewhere to enable appveyor tests? |
Okay, I think I have appveyor set up, but the easiest way to test that is to merge this so that's what I'm doing. |
Nice one @pawelpanasewicz! |
Thanks guys! Nice to read such words! |
Anything against this? Now I can run it as well from windows.