git.iko.soy/typeable/pandoc
on master help sign in
Stack-based appveyor setup.
commit928a05073f87341b753f80a9b92f06dc0a19f466 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 7 Mar 2016, 09:16 (11 years ago) parent0510396
1 file changed+14−33
appveyor.yml+14−33
appveyor.yml+14−33
@@ -1,38 +1,19 @@
1−install:
2−- cmd: 'git submodule update --init'
3−- ps: |
4− choco install haskellplatform -version 2014.2.0.0 -y
5− # Haskell Platfrom package doesn't update PATH for the current shell instance
1+cache:
2+- "c:\\sr" # stack root, short paths == fewer problems
63
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"
9− $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\mingw\bin"
10− # choco install wixtoolset
11− cabal sandbox init
12− $env:Path += ";.\.cabal-sandbox\bin"
13− cabal update
14− cabal install --force hsb2hs
4+build: off
155
16−build_script:
17−- cmd: |
18− cabal install --force --enable-tests -fembed_data_files
6+before_test:
7+- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
8+- 7z x stack.zip stack.exe
199
20−# after_build:
21−# - cmd: |
22−# cabal install -fembed_data_files pandoc-citeproc
23−# strip .\.cabal-sandbox\bin\pandoc.exe
24−# strip .\.cabal-sandbox\bin\pandoc-citeproc.exe
25−# .\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.html -S README -o README.html
26−# .\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.rtf COPYING -t rtf -S -o COPYING.rtf
27−# copy COPYRIGHT COPYRIGHT.txt
28−# for /f "tokens=2 delims= " %%a in ('.\.cabal-sandbox\bin\pandoc --version') do ( set "VERSION=%%a" && exit )
29−# if "%VERSION%" == "" ( echo "Error: could not determine version number." && exit /b 1 )
30−# cd windows
31−# echo Creating msi...
32−# candle -dVERSION=%VERSION% pandoc.wxs
33−# if %errorlevel% neq 0 exit /b %errorlevel%
34−# light -sw1076 -ext WixUIExtension -ext WixUtilExtension -out pandoc-%VERSION%-windows.msi pandoc.wixobj
10+clone_folder: "c:\\stack"
11+environment:
12+ global:
13+ STACK_ROOT: "c:\\sr"
3514
3615test_script:
37−- cmd: |
38− cabal test
16+- stack setup > nul
17+# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
18+# descriptor
19+- echo "" | stack --no-terminal test