-
Notifications
You must be signed in to change notification settings - Fork 13
/
.appveyor.yml
116 lines (116 loc) · 5 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
environment:
MSYS_PACKAGES: mingw-w64-x86_64-cmocka mingw-w64-i686-cmocka mingw-w64-x86_64-pkg-config mingw-w64-i686-pkg-config
PY3MODS: cffi freecell_solver pycotap pysol_cards random2 six
# Shamelessly taken from https://github.com/plicease/Dist-Zilla-PluginBundle-Author-Plicease/blob/master/.appveyor.yml
# Thanks!
install:
- dir
- cd
- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu"
- choco install ag
- choco install strawberryperl || type C:\ProgramData\chocolatey\logs\chocolatey.log
- set PATH=C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;%PATH%
- cpanm --notest --quiet Code::TidyAll::Plugin::ClangFormat Code::TidyAll::Plugin::TestCount CHI Devel::Trace Docker::CLI::Wrapper::Container Games::Solitaire::Verify::HorneAutomovePrune LWP Perl::Tidy Task::FreecellSolver::Testing Test::Code::TidyAll
- if not exist C:\libtap mkdir C:\libtap
- copy c:\Python311-x64\python.exe c:\Python311-x64\python3.exe
- SET PATH=C:\Python311-x64;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
- python3 -mpip install %PY3MODS%
- perl -v
- copy C:\msys64\mingw64\bin\mingw32-make.exe C:\msys64\mingw64\bin\make.exe
- SET PERL5LIB=C:/_P5/lib/perl5
- SET PERL_LOCAL_LIB_ROOT=C:/_P5
- SET PERL_MB_OPT=--install_base C:/_P5
- SET PERL_MM_OPT=INSTALL_BASE=C:/_P5
- perl -v
- if not exist C:\libtap\gperf-3.1.tar.gz curl -o C:\libtap\gperf-3.1.tar.gz http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz
- copy C:\libtap\gperf-3.1.tar.gz .
- tar -xvf gperf-3.1.tar.gz
- set MAKE=C:/strawberry/c/bin/gmake.exe
- cd gperf-3.1 && perl ../fc-solve/scripts/ci-build-gperf-mswin.pl && cd ..
- git clone https://github.com/clibs/cmocka libtap
- mkdir libtap\b
- cd libtap\b
- set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe
- cmake -G "MinGW Makefiles" -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM% -DCMAKE_INSTALL_PREFIX=C:\libtap ..
- echo %PATH%
- gmake
- gmake install
- cd ..\..\
- git clone https://github.com/shlomif/rinutils rinutils
- mkdir rinutils\b
- cd rinutils\b
- set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe
- cmake -G "MinGW Makefiles" -DWITH_TEST_SUITE=OFF -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM% -DCMAKE_INSTALL_PREFIX=C:\libtap ..
- echo %PATH%
- gmake
- gmake install
- SET MYOLDPATH_=%PATH%
- mkdir ..\b32
- cd ..\b32
- cmake -G "MinGW Makefiles" -DWITH_TEST_SUITE=OFF -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM% -DCMAKE_INSTALL_PREFIX=C:\libtap32 ..
- echo %PATH%
- gmake
- gmake install
- SET PATH=%MYOLDPATH_%
- cd ..\..\
build: off
image: Visual Studio 2019
test_script:
- set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe
- set LIBRARY_PATH=C:\libtap\lib
- set CMAKE_LIBRARY_PATH=C:\libtap\lib
- set CMAKE_PREFIX_PATH=C:/libtap;c:/libtap32
- set LD_LIBRARY_PATH=C:\libtap\lib
- set PKG_CONFIG_PATH=C:\libtap\lib\pkgconfig;
- dir c:\libtap /s
- set CPATH=C:\libtap\include
- set PATH=C:\libtap\bin;%PATH%
- del c:\msys64\mingw64\bin\python*.exe
- set HARNESS_BREAK=1
- set FCS_USE_TEST_RUN=1
- mkdir fc-solve\b
- cd fc-solve\b
- perl ../scripts/Tatzer -G "MinGW Makefiles" -l x64t --dbm=kaztree
- SET PATH=C:\projects\fc-solve\fc-solve\scripts\win32;%PATH%
- echo %PATH%
- gmake
- gmake boards
- perl ../source/run-tests.pl
- echo %PATH%
- cd ..
- mkdir pkg-build-win64
- cd pkg-build-win64
- perl ../scripts/Tatzer -G "MinGW Makefiles" --notest-suite -r
- gmake package
# See https://stackoverflow.com/questions/29754510/generating-an-installer-using-cmake-cpack-wix
- cpack -G WIX
- cd ..
- mkdir pkg-build
- cd pkg-build
# For generating 32-bit release binaries.
- perl ../scripts/Tatzer -G "MinGW Makefiles" --notest-suite -r --dbm=none
- gmake package
# See https://stackoverflow.com/questions/29754510/generating-an-installer-using-cmake-cpack-wix
- cpack -G WIX
# For generating the binaries zip for https://github.com/shlomif/PySolFC/issues/58 ( PySol )
- perl ../scripts/Tatzer -G "MinGW Makefiles" -l pysol_defs --notest-suite -r --prefix=c:\fcs-pysol --dbm=none
- gmake install
- 7z a fc-solve-for-pysol.zip c:/fcs-pysol
# Disabling due to cache invalidation problems
# cache:
# - C:\libtap -> .appveyor.yml
# - C:\_P5 -> .appveyor.yml
# - C:\strawberry -> .appveyor.yml
shallow_clone: true
artifacts:
- path: 'fc-solve\pkg-build\fc-solve-for-pysol.zip'
name: Freecell Solver Zip Distribution for PySol FC
- path: 'fc-solve\pkg-build\freecell-solver-*-win32.exe'
name: Freecell Solver Win32 Package
- path: 'fc-solve\pkg-build-win64\freecell-solver-*-win64.exe'
name: Freecell Solver Win64 Package
- path: 'fc-solve\pkg-build\freecell-solver-*-win32.msi'
name: Freecell Solver Win32 MSI Package
- path: 'fc-solve\pkg-build-win64\freecell-solver-*-win64.msi'
name: Freecell Solver Win64 MSI Package