aboutsummaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
authorickc <ickc@users.noreply.github.com>2016-05-09 19:24:40 -0700
committerickc <ickc@users.noreply.github.com>2016-05-09 19:24:40 -0700
commit0ae60a91535a8f55f3061f36fdb3a54f6ddda85d (patch)
treef0c74ae411967ed5f67bd8b0bdf175ee5ca964ab /appveyor.yml
parent846fa8704618e7e544313f5b3b627ccb6e65b550 (diff)
parentf7601297f0ff184a59efdc3ea279137fc6012eef (diff)
downloadpandoc-0ae60a91535a8f55f3061f36fdb3a54f6ddda85d.tar.gz
Merge pull request #1 from jgm/master
Merge from jgm's master
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml47
1 files changed, 14 insertions, 33 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 00a1aab34..f2fe828fa 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,38 +1,19 @@
-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
+cache:
+- "c:\\sr" # stack root, short paths == fewer problems
- $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"
- # choco install wixtoolset
- cabal sandbox init
- $env:Path += ";.\.cabal-sandbox\bin"
- cabal update
- cabal install --force hsb2hs
+build: off
-build_script:
-- cmd: |
- cabal install --force --enable-tests -fembed_data_files
+before_test:
+- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
+- 7z x stack.zip stack.exe
-# 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
+clone_folder: "c:\\stack"
+environment:
+ global:
+ STACK_ROOT: "c:\\sr"
test_script:
-- cmd: |
- cabal test
+- stack setup > nul
+# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
+# descriptor
+- echo "" | stack --no-terminal test