2015-09-27 06:27:34 +02:00
|
|
|
install:
|
|
|
|
- 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
|
2015-09-27 03:04:50 +02:00
|
|
|
|
2015-09-27 06:27:34 +02:00
|
|
|
$env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\bin"
|
|
|
|
$env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\lib\extralibs\bin"
|
|
|
|
$env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\mingw\bin"
|
2015-09-27 18:13:37 +02:00
|
|
|
choco install wixtoolset
|
|
|
|
cabal sandbox init
|
|
|
|
$env:Path += ";.\.cabal-sandbox\bin"
|
2015-09-27 06:27:34 +02:00
|
|
|
cabal update
|
2015-09-27 18:13:37 +02:00
|
|
|
cabal install --force hsb2hs
|
2015-04-27 02:57:24 +02:00
|
|
|
|
2015-09-27 06:27:34 +02:00
|
|
|
build_script:
|
|
|
|
- ps: |
|
|
|
|
echo "PATH is $env:Path"
|
2015-09-27 18:27:56 +02:00
|
|
|
cabal install --force --enable-tests -fembed_data_files . pandoc-citeproc
|
2015-09-27 18:13:37 +02:00
|
|
|
|
|
|
|
after_build:
|
|
|
|
- ps: |
|
|
|
|
echo "PATH is $env:Path"
|
|
|
|
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=1-2 delims= " %%a in ('.\.cabal-sandbox\bin\pandoc --version') do (
|
|
|
|
@set VERSION=%%b
|
|
|
|
goto :next
|
|
|
|
)
|
|
|
|
:next
|
|
|
|
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
|
2015-04-26 20:37:37 +02:00
|
|
|
|
|
|
|
test_script:
|
2015-09-27 06:27:34 +02:00
|
|
|
- ps: |
|
|
|
|
cabal test
|