git.iko.soy/typeable/pandoc
on master help sign in
appveyor.yml - use proper windows conditional syntax.
commitc307bfb953307a9d026a1b37333cf1aa4a233915 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 24 Sep 2018, 12:45 (8 years ago) parentee02820
1 file changed+6−8
appveyor.yml+6−8
appveyor.yml+6−8
@@ -60,12 +60,11 @@ build: off
6060
6161install:
6262 - choco install wixtoolset %CHOCO_OPTS%
63− - if test "$BUILD_TYPE" = stack
64− then
63+ - if "%BUILD_TYPE" == "stack" (
6564 choco install haskell-stack %CHOCO_OPTS%
66− else
65+ ) else (
6766 choco install ghc --version %GHC_VERSION% %CHOCO_OPTS%
68− fi
67+ )
6968
7069# before_test:
7170
@@ -73,19 +72,18 @@ test_script:
7372 # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
7473 # descriptor
7574 - |
76− if test "$BUILD_TYPE" = stack
77− then
75+ if "%BUILD_TYPE" == "stack" (
7876 stack --version
7977 stack path
8078 echo "" | stack clean
8179 echo "" | stack install --stack-yaml %STACK_YAML% %STACK_BUILD_OPTS% %STACK_FLAGS% pandoc pandoc-citeproc
82− else
80+ ) else (
8381 cabal --version
8482 cabal update
8583 cabal new-build %CABAL_BUILD_OPTS% . pandoc-citeproc
8684 cp "`find dist-newstyle/ -type f -name pandoc`" .\windows\
8785 cp "`find dist-newstyle/ -type f -name pandoc-citeproc`" .\windows\
88− fi
86+ )
8987
9088after_test:
9189 # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)