aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-09-24 15:33:12 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-09-24 15:33:12 -0700
commit7a9129ef4866ed6527e611fde7f1142ca4519f26 (patch)
treeead994d76dff1cdfd169adf9522b3eba3b835098
parenta72aed27e2a30923bce39ec8a3ebda6755c264d4 (diff)
downloadpandoc-7a9129ef4866ed6527e611fde7f1142ca4519f26.tar.gz
appveyor - use ps.
-rw-r--r--appveyor.yml24
1 files changed, 12 insertions, 12 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 1e8ea84f7..ff5ce9ed9 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -60,31 +60,31 @@ build: off
install:
- choco install wixtoolset %CHOCO_OPTS%
- - |
- if "%BUILD_TYPE%" == "stack" (
- choco install haskell-stack %CHOCO_OPTS%
- ) else (
- choco install ghc --version %GHC_VERSION% %CHOCO_OPTS%
- )
+ - ps: |
+ if ($env:BUILD_TYPE -Match "stack") {
+ choco install haskell-stack $env:CHOCO_OPTS
+ } else {
+ choco install ghc --version $env:GHC_VERSION $env:CHOCO_OPTS
+ }
# before_test:
test_script:
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- - |
- if "%BUILD_TYPE%" == "stack" (
+ - | ps: |
+ if ($env:BUILD_TYPE -Match "stack") {
stack --version
stack path
echo "" | stack clean
- echo "" | stack install --stack-yaml %STACK_YAML% %STACK_BUILD_OPTS% %STACK_FLAGS% pandoc pandoc-citeproc
- ) else (
+ echo "" | stack install --stack-yaml $env:STACK_YAML $env:STACK_BUILD_OPTS $env:STACK_FLAGS pandoc pandoc-citeproc
+ } else {
cabal --version
cabal update
- cabal new-build %CABAL_BUILD_OPTS% . pandoc-citeproc
+ cabal new-build $env:CABAL_BUILD_OPTS . pandoc-citeproc
cp "`find dist-newstyle/ -type f -name pandoc`" .\windows\
cp "`find dist-newstyle/ -type f -name pandoc-citeproc`" .\windows\
- )
+ }
after_test:
# .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)