2 # Shamelessly taken from https://github.com/plicease/Dist-Zilla-PluginBundle-Author-Plicease/blob/master/.appveyor.yml
4 clone_folder: c:\projects\fortune-mod
10 - choco install strawberryperl
11 - SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
13 - if not exist C:\Perl5 mkdir C:\Perl5
14 - SET PATH=C:\msys64\bin;C:\Perl5\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
15 - SET PERL5LIB=C:/Perl5/lib/perl5
16 - SET PERL_LOCAL_LIB_ROOT=C:/Perl5
17 - SET PERL_MB_OPT=--install_base C:/Perl5
18 - SET PERL_MM_OPT=INSTALL_BASE=C:/Perl5
19 - cpanm --notest Env::Path IO::All Perl::Tidy Pod::Coverage::TrustPod String::ShellQuote Test::Code::TidyAll Test::Differences Test::EOL Test::Pod Test::Pod::Coverage Test::RunValgrind Test::TrailingSpace Test::Trap
20 - git clone https://github.com/rrthomas/Recode ./recode
21 - C:\msys64\usr\bin\bash.exe -l -x -c "test -e /mingw64/include/recode.h || bash -x c:/projects/fortune-mod/recode/build-aux/appveyor-install.sh"
22 - C:\msys64\usr\bin\bash.exe -x -lc "test -e /mingw64/include/recode.h || cd c:/projects/fortune-mod/recode && ./bootstrap && ./configure --enable-silent-rules %CONFIGURE_FLAGS% && make && make install"
25 - set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe
26 # Removing for now because it is too much trouble on windows.
27 # - set FCS_TEST_BUILD=1
28 - set CPATH=c:\mingw64\include;c:\msys64\mingw64\include
29 - set LIBRARY_PATH=c:\mingw64\lib;c:\msys64\mingw64\lib
30 # Python3 confuses the recode build so only add it here.
31 - SET PATH=%PATH%;C:\Python35-x64
32 - perl CI-testing/continuous-integration-testing.pl --gen="MSYS Makefiles"