git.iko.soy/typeable/pandoc
on master help sign in
appveyor.yml: back to cabal/HP based build.

Can't get stack build to work. With 64 bit, we run into problems building hslua. https://github.com/osa1/hslua/issues/22 With 32 bit, we run into problems with missing symbol __mingw_vsprintf in building cmark.

commit2e4c4575db7b69567fc486933b1f691310e6cf77 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 7 Oct 2015, 10:01 (11 years ago) parent1eda820
1 file changed+35−20
appveyor.yml+35−20
appveyor.yml+35−20
@@ -1,26 +1,41 @@
1−branches:
2− only:
3− - master
4−
51cache:
6−- "c:\\sr" # stack root, short paths == fewer problems
7−- "%LOCALAPPDATA%\\Programs\\stack"
2+- "C:\\Program Files\\Haskell Platform\\2014.2.0.0"
3+
4+install:
5+- cmd: 'git submodule update --init'
6+- ps: |
7+ choco install haskellplatform -version 2014.2.0.0 -y
8+ # Haskell Platfrom package doesn't update PATH for the current shell instance
89
9−build: off
10+ $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\bin"
11+ $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\lib\extralibs\bin"
12+ $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\mingw\bin"
13+ choco install wixtoolset
14+ cabal sandbox init
15+ $env:Path += ";.\.cabal-sandbox\bin"
16+ cabal update
17+ cabal install --force hsb2hs
1018
11−before_test:
12−- git submodule update --init
13−- ps: Invoke-WebRequest "https://github.com/commercialhaskell/stack/releases/download/v0.1.5.0/stack-0.1.5.0-i386-windows.zip" -OutFile stack.zip
14−- ps: Invoke-WebRequest "https://github.com/fpco/minghc/blob/master/bin/7z.exe?raw=true" -OutFile 7z.exe
15−- ps: Invoke-WebRequest "https://github.com/fpco/minghc/blob/master/bin/7z.dll?raw=true" -OutFile 7z.dll
16−- 7z x -oc:\\stack stack.zip
17−- move c:\\stack\\stack.exe stack.exe
18−- stack setup --arch=i386
19+build_script:
20+- cmd: |
21+ cabal install --force --enable-tests -fembed_data_files
1922
20−clone_folder: "c:\\pandoc"
21−environment:
22− global:
23− STACK_ROOT: "c:\\sr"
23+# after_build:
24+# - cmd: |
25+# cabal install -fembed_data_files pandoc-citeproc
26+# strip .\.cabal-sandbox\bin\pandoc.exe
27+# strip .\.cabal-sandbox\bin\pandoc-citeproc.exe
28+# .\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.html -S README -o README.html
29+# .\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.rtf COPYING -t rtf -S -o COPYING.rtf
30+# copy COPYRIGHT COPYRIGHT.txt
31+# for /f "tokens=2 delims= " %%a in ('.\.cabal-sandbox\bin\pandoc --version') do ( set "VERSION=%%a" && exit )
32+# if "%VERSION%" == "" ( echo "Error: could not determine version number." && exit /b 1 )
33+# cd windows
34+# echo Creating msi...
35+# candle -dVERSION=%VERSION% pandoc.wxs
36+# if %errorlevel% neq 0 exit /b %errorlevel%
37+# light -sw1076 -ext WixUIExtension -ext WixUtilExtension -out pandoc-%VERSION%-windows.msi pandoc.wixobj
2438
2539test_script:
26−- echo "" | stack test
40+- cmd: |
41+ cabal test