@@ -1,41 +1,25 @@
2−- "C:\\Program Files\\Haskell Platform\\2014.2.0.0"
2+ only:
5−- cmd: 'git submodule update --init'
6+- "c:\\sr" # stack root, short paths == fewer problems
6−- ps: |
7+- "%LOCALAPPDATA%\\Programs\\stack"
7− choco install haskellplatform -version 2014.2.0.0 -y
8− # Haskell Platfrom package doesn't update PATH for the current shell instance
10− $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\bin"
9+build: off
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
15− $env:Path += ";.\.cabal-sandbox\bin"
17− cabal install --force hsb2hs
19−build_script:
11+before_test:
20−- cmd: |
12+- git submodule update --init
21− cabal install --force --enable-tests -fembed_data_files
13+- ps: Invoke-WebRequest "https://github.com/commercialhaskell/stack/releases/download/v0.1.5.0/stack-0.1.5.0-x86_64-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
23−# after_build:
19+clone_folder: "c:\\pandoc"
24−# - cmd: |
20+environment:
25−# cabal install -fembed_data_files pandoc-citeproc
21+ global:
26−# strip .\.cabal-sandbox\bin\pandoc.exe
22+ STACK_ROOT: "c:\\sr"
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 )
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
39test_script:
24test_script:
41− cabal test
25+- stack test