appveyor.yml: new attempt to build with stack.
This commit is contained in:
parent
869e800bbb
commit
4a64719c59
1 changed files with 19 additions and 35 deletions
54
appveyor.yml
54
appveyor.yml
|
@ -1,41 +1,25 @@
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- "C:\\Program Files\\Haskell Platform\\2014.2.0.0"
|
- "c:\\sr" # stack root, short paths == fewer problems
|
||||||
|
- "%LOCALAPPDATA%\\Programs\\stack"
|
||||||
|
|
||||||
install:
|
build: off
|
||||||
- cmd: 'git submodule update --init'
|
|
||||||
- ps: |
|
|
||||||
choco install haskellplatform -version 2014.2.0.0 -y
|
|
||||||
# Haskell Platfrom package doesn't update PATH for the current shell instance
|
|
||||||
|
|
||||||
$env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\bin"
|
before_test:
|
||||||
$env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\lib\extralibs\bin"
|
- git submodule update --init
|
||||||
$env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\mingw\bin"
|
- 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
|
||||||
choco install wixtoolset
|
- ps: Invoke-WebRequest "https://github.com/fpco/minghc/blob/master/bin/7z.exe?raw=true" -OutFile 7z.exe
|
||||||
cabal sandbox init
|
- ps: Invoke-WebRequest "https://github.com/fpco/minghc/blob/master/bin/7z.dll?raw=true" -OutFile 7z.dll
|
||||||
$env:Path += ";.\.cabal-sandbox\bin"
|
- 7z x -oc:\\stack stack.zip
|
||||||
cabal update
|
- move c:\\stack\\stack.exe stack.exe
|
||||||
cabal install --force hsb2hs
|
|
||||||
|
|
||||||
build_script:
|
clone_folder: "c:\\pandoc"
|
||||||
- cmd: |
|
environment:
|
||||||
cabal install --force --enable-tests -fembed_data_files
|
global:
|
||||||
|
STACK_ROOT: "c:\\sr"
|
||||||
# after_build:
|
|
||||||
# - cmd: |
|
|
||||||
# cabal install -fembed_data_files pandoc-citeproc
|
|
||||||
# strip .\.cabal-sandbox\bin\pandoc.exe
|
|
||||||
# strip .\.cabal-sandbox\bin\pandoc-citeproc.exe
|
|
||||||
# .\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.html -S README -o README.html
|
|
||||||
# .\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.rtf COPYING -t rtf -S -o COPYING.rtf
|
|
||||||
# copy COPYRIGHT COPYRIGHT.txt
|
|
||||||
# for /f "tokens=2 delims= " %%a in ('.\.cabal-sandbox\bin\pandoc --version') do ( set "VERSION=%%a" && exit )
|
|
||||||
# if "%VERSION%" == "" ( echo "Error: could not determine version number." && exit /b 1 )
|
|
||||||
# cd windows
|
|
||||||
# echo Creating msi...
|
|
||||||
# candle -dVERSION=%VERSION% pandoc.wxs
|
|
||||||
# if %errorlevel% neq 0 exit /b %errorlevel%
|
|
||||||
# light -sw1076 -ext WixUIExtension -ext WixUtilExtension -out pandoc-%VERSION%-windows.msi pandoc.wixobj
|
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- cmd: |
|
- stack test
|
||||||
cabal test
|
|
||||||
|
|
Loading…
Reference in a new issue