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