@@ -60,12 +60,11 @@ build: off
62 - choco install wixtoolset %CHOCO_OPTS%
62 - choco install wixtoolset %CHOCO_OPTS%
63− - if test "$BUILD_TYPE" = stack
63+ - if "%BUILD_TYPE" == "stack" (
65 choco install haskell-stack %CHOCO_OPTS%
64 choco install haskell-stack %CHOCO_OPTS%
67 choco install ghc --version %GHC_VERSION% %CHOCO_OPTS%
66 choco install ghc --version %GHC_VERSION% %CHOCO_OPTS%
70# before_test:
69# before_test:
@@ -73,19 +72,18 @@ test_script:
73 # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
72 # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
74 # descriptor
73 # descriptor
76− if test "$BUILD_TYPE" = stack
75+ if "%BUILD_TYPE" == "stack" (
78 stack --version
76 stack --version
79 stack path
77 stack path
80 echo "" | stack clean
78 echo "" | stack clean
81 echo "" | stack install --stack-yaml %STACK_YAML% %STACK_BUILD_OPTS% %STACK_FLAGS% pandoc pandoc-citeproc
79 echo "" | stack install --stack-yaml %STACK_YAML% %STACK_BUILD_OPTS% %STACK_FLAGS% pandoc pandoc-citeproc
83 cabal --version
81 cabal --version
84 cabal update
82 cabal update
85 cabal new-build %CABAL_BUILD_OPTS% . pandoc-citeproc
83 cabal new-build %CABAL_BUILD_OPTS% . pandoc-citeproc
86 cp "`find dist-newstyle/ -type f -name pandoc`" .\windows\
84 cp "`find dist-newstyle/ -type f -name pandoc`" .\windows\
87 cp "`find dist-newstyle/ -type f -name pandoc-citeproc`" .\windows\
85 cp "`find dist-newstyle/ -type f -name pandoc-citeproc`" .\windows\
90after_test:
88after_test:
91 # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)
89 # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)