@@ -7,14 +7,39 @@ install:
7 $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\bin"
7 $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\bin"
8 $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\lib\extralibs\bin"
8 $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\lib\extralibs\bin"
9 $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\mingw\bin"
9 $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\mingw\bin"
10+ choco install wixtoolset
12+ $env:Path += ";.\.cabal-sandbox\bin"
10 cabal update
13 cabal update
11− cabal install --only-dependencies --enable-tests -w "C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc-7.8.3"
14+ cabal install --force hsb2hs
13build_script:
16build_script:
15 echo "PATH is $env:Path"
18 echo "PATH is $env:Path"
16− cabal configure --enable-tests -v2 -w "C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc-7.8.3"
19+ cabal install --force --enable-tests --embed_data_files . pandoc-citeproc
23+ echo "PATH is $env:Path"
24+ strip .\.cabal-sandbox\bin\pandoc.exe
25+ strip .\.cabal-sandbox\bin\pandoc-citeproc.exe
26+ .\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.html -S README -o README.html
27+ .\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.rtf COPYING -t rtf -S -o COPYING.rtf
28+ copy COPYRIGHT COPYRIGHT.txt
29+ for /f "tokens=1-2 delims= " %%a in ('.\.cabal-sandbox\bin\pandoc --version') do (
34+ if "%VERSION%" == "" (
35+ echo Error: could not determine version number.
40+ candle -dVERSION=%VERSION% pandoc.wxs
41+ if %errorlevel% neq 0 exit /b %errorlevel%
42+ light -sw1076 -ext WixUIExtension -ext WixUtilExtension -out pandoc-%VERSION%-windows.msi pandoc.wixobj
19test_script:
44test_script: