aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-09-24 21:01:41 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-09-24 21:01:41 -0700
commitcf14c2be33318c728072f100996d8ab17fe61886 (patch)
tree866b540ca4ab31c8424d8c15a68b43599924e44e
parent34eac932401dece187d456af8773585b3d6bb333 (diff)
downloadpandoc-cf14c2be33318c728072f100996d8ab17fe61886.tar.gz
appveyor - another attempt.
-rw-r--r--appveyor.yml22
1 files changed, 10 insertions, 12 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 91b5d1a67..0919f843d 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -60,31 +60,29 @@ build: off
install:
- choco install wixtoolset %CHOCO_OPTS%
- - ps: |
- if ($env:BUILD_TYPE -Match "stack") {
- choco install haskell-stack $env:CHOCO_OPTS
- } else {
- choco install ghc --version $env:GHC_VERSION $env:CHOCO_OPTS
- }
+ - if "%BUILD_TYPE%" == "stack" (
+ choco install haskell-stack %CHOCO_OPTS%
+ ) else (
+ choco install ghc --version %GHC_VERSION% %CHOCO_OPTS%
+ )
# before_test:
test_script:
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- - ps: |
- if ($env:BUILD_TYPE -Match "stack") {
+ - if "%BUILD_TYPE%" == "stack" (
stack --version
stack path
echo "" | stack clean
- echo "" | stack install --stack-yaml $env:STACK_YAML $env:STACK_BUILD_OPTS $env:STACK_FLAGS pandoc pandoc-citeproc
- } else {
+ echo "" | stack install --stack-yaml %STACK_YAML% %STACK_BUILD_OPTS% %STACK_FLAGS% pandoc pandoc-citeproc
+ ) else (
cabal --version
cabal update
- cabal new-build $env:CABAL_BUILD_OPTS . pandoc-citeproc
+ cabal new-build %CABAL_BUILD_OPTS% . pandoc-citeproc
cp "`find dist-newstyle/ -type f -name pandoc`" .\windows\
cp "`find dist-newstyle/ -type f -name pandoc-citeproc`" .\windows\
- }
+ )
after_test:
# .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)