From c307bfb953307a9d026a1b37333cf1aa4a233915 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 24 Sep 2018 12:45:38 -0700 Subject: appveyor.yml - use proper windows conditional syntax. --- appveyor.yml | 14 ++++++-------- 1 file 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) -- cgit v1.2.3