From 952677a212f4aafce2364fb0ccb7196121398c1e Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Mon, 3 Sep 2018 15:33:23 -0700
Subject: [PATCH] appveyor.yml : try building with lts-12.

---
 appveyor.yml | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/appveyor.yml b/appveyor.yml
index 8139d5403..2fc7f299b 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -3,17 +3,30 @@ clone_folder: "c:\\pandoc"
 environment:
   global:
     WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.11\\bin"
-    STACK_YAML: "c:\\pandoc\\stack.yaml"
     STACK_BUILD_OPTS: "--no-terminal -j1 --no-terminal --test --local-bin-path=.\\windows"
     # see #4201, https://github.com/haskell-tools/haskell-tools/issues/277
   matrix:
   - STACK_VERSION: "windows-i386"
     STACK_ROOT: "c:\\sr32"
+    STACK_YAML: "stack.lts11.yaml"
     STACK: "%STACK_ROOT%\\stack.exe"
     STACK_FLAGS: "--flag=hslua:lua_32bits"
     ARCH: "x86"
   - STACK_VERSION: "windows-x86_64"
     STACK_ROOT: "c:\\sr64"
+    STACK_YAML: "stack.lts11.yaml"
+    STACK: "%STACK_ROOT%\\stack.exe"
+    STACK_FLAGS: ""
+    ARCH: "x64"
+  - STACK_VERSION: "windows-i386"
+    STACK_ROOT: "c:\\sr32"
+    STACK_YAML: "stack.yaml"
+    STACK: "%STACK_ROOT%\\stack.exe"
+    STACK_FLAGS: "--flag=hslua:lua_32bits"
+    ARCH: "x86"
+  - STACK_VERSION: "windows-x86_64"
+    STACK_ROOT: "c:\\sr64"
+    STACK_YAML: "stack.yaml"
     STACK: "%STACK_ROOT%\\stack.exe"
     STACK_FLAGS: ""
     ARCH: "x64"
@@ -55,10 +68,10 @@ test_script:
   # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
   # descriptor
   - |
-      %STACK% setup --stack-yaml stack.lts11.yaml > nul
+      %STACK% setup --stack-yaml %STACK_YAML% > nul
       %STACK% path
       echo "" | %STACK% clean
-      echo "" | %STACK% install --stack-yaml stack.lts11.yaml %STACK_BUILD_OPTS% pandoc pandoc-citeproc %STACK_FLAGS%
+      echo "" | %STACK% install --stack-yaml %STACK_YAML% %STACK_BUILD_OPTS% pandoc pandoc-citeproc %STACK_FLAGS%
 
 after_test:
     # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)