aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-09-24 12:45:38 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-09-24 12:45:38 -0700
commitc307bfb953307a9d026a1b37333cf1aa4a233915 (patch)
tree9fc522ca4b91271c37c4cea922628b9b5bee7c2c
parentee0282081618c67f57ef6e9eed3233bb92719d29 (diff)
downloadpandoc-c307bfb953307a9d026a1b37333cf1aa4a233915.tar.gz
appveyor.yml - use proper windows conditional syntax.
-rw-r--r--appveyor.yml14
1 files changed, 6 insertions, 8 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 10e89e8d2..955918f1d 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -60,12 +60,11 @@ build: off
install:
- choco install wixtoolset %CHOCO_OPTS%
- - if test "$BUILD_TYPE" = stack
- then
+ - if "%BUILD_TYPE" == "stack" (
choco install haskell-stack %CHOCO_OPTS%
- else
+ ) else (
choco install ghc --version %GHC_VERSION% %CHOCO_OPTS%
- fi
+ )
# before_test:
@@ -73,19 +72,18 @@ test_script:
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- |
- if test "$BUILD_TYPE" = stack
- then
+ if "%BUILD_TYPE" == "stack" (
stack --version
stack path
echo "" | stack clean
echo "" | stack install --stack-yaml %STACK_YAML% %STACK_BUILD_OPTS% %STACK_FLAGS% pandoc pandoc-citeproc
- else
+ ) else (
cabal --version
cabal update
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\
- fi
+ )
after_test:
# .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)