Hi all!
The Black Hole Solitaire Solver now passes its AppVeyor (= a Windows-hosted
Continuous Integeration service) build+tests . See:
*
https://github.com/shlomif/black-hole-solitaire
*
https://ci.appveyor.com/project/shlomif/black-hole-solitaire
*
https://twitter.com/shlomif/status/799962977583661057 - announcement tweet
*
https://www.facebook.com/shlomi.fish/posts/10154012826101981?pnref=story -
Facebook repost of the tweet.
Part of the motivation for me doing that was to test the waters and perhaps
as
a stepping stone before venturing into enabling AppVeyor for Freecell Solver
(which already has a Linux-based Travis-CI testing).
Some of the things that I have learned in the process are:
#. The <<open my $fh, '-|'>> syntax does not work in perl 5 on windows.
Luckily, I was able to replace a fork for ack with Test::TrailingSpace.
#. I was able to test for windows on Perl using «my $IS_WIN = ($^O eq
"MSWin32");» but perhaps using Devel::CheckOS will be better.
#. There are often cases where the CRLF vs. LF newlines bites you. Search
for
_normalize_lf in the repository for a solution.
#. «exit(256);» in Perl exits with a status code of 0. One should use
«exit($exit_code ? (-1) : 0);»
#. exec() in Perl on windows does not work too well. system() and then
exit()
are better
#. Often using "/" instead of backslash on windows confuses the shell.
#. One cannot execute perl programs directly and one should qualify them
with
"perl" or "$^X" / etc.
#. One should use -g "MSYS Makefiles" for CMake on AppVeyor.
Regards,
Shlomi Fish
--
Shlomi Fish http://www.shlomifish.org/
You can never truly appreciate The Gilmore Girls until you've watched it in
the original Klingon.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Received on Mon Nov 21 2016 - 07:15:30 IST