From 62fdfd1fe38cd578df4fc4a6aa4c20d7a2563b5e Mon Sep 17 00:00:00 2001
From: Slavey Karadzhov <slav@attachix.com>
Date: Fri, 28 Jul 2017 16:49:25 +0200
Subject: [PATCH 1/2] Move to using the update choco repository.

---
 appveyor.yml | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/appveyor.yml b/appveyor.yml
index 0810e32159..db888ee228 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -13,12 +13,9 @@ environment:
 # cache:
 #   - src/  # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
 install:
-  - choco sources add -name kireevco -source 'https://www.myget.org/F/kireevco-chocolatey/'
+  - choco sources add -name sming -source 'https://www.myget.org/F/sming/'
   - choco install -y esp8266-udk wget curl
-#  - C:\MinGW\bin\mingw-get install 
-  - mkdir c:\Espressif\utils\ESP8266
-  - cp c:\Espressif\utils\memanalyzer.exe c:\Espressif\utils\ESP8266\memanalyzer.exe
-  - cp c:\Espressif\utils\esptool.exe c:\Espressif\utils\ESP8266\esptool.exe
+#  - C:\MinGW\bin\mingw-get install
   - git clone https://github.com/raburton/esptool2
   - cd esptool2
   - make

From 0041c82843735fcd3744e723868824fb633c2789 Mon Sep 17 00:00:00 2001
From: Slavey Karadzhov <slav@attachix.com>
Date: Fri, 28 Jul 2017 17:35:01 +0200
Subject: [PATCH 2/2] Build with SDK 1.5.0 and SDK 2.0.0

---
 appveyor.yml | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/appveyor.yml b/appveyor.yml
index db888ee228..2ab96b8a4c 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -10,12 +10,28 @@ environment:
       build_compiler: "mingw"
       build_bindings: 1
       SDK_VERSION: 2.0.0
+    - build_platform: "x86"
+      build_compiler: "mingw"
+      build_bindings: 1
+      SDK_VERSION: 1.5.0
+
 # cache:
 #   - src/  # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
 install:
   - choco sources add -name sming -source 'https://www.myget.org/F/sming/'
-  - choco install -y esp8266-udk wget curl
-#  - C:\MinGW\bin\mingw-get install
+  - ps: if($env:SDK_VERSION -eq '1.5.0') {
+            choco install esp8266-udk --source https://www.myget.org/F/kireevco-chocolatey/;
+            mkdir c:\Espressif\utils\ESP8266;
+            cp c:\Espressif\utils\memanalyzer.exe c:\Espressif\utils\ESP8266\memanalyzer.exe;
+            cp c:\Espressif\utils\esptool.exe c:\Espressif\utils\ESP8266\esptool.exe;
+        }
+        else {
+            choco install esp8266-udk
+        }
+  
+  
+  
+# Install esptool2
   - git clone https://github.com/raburton/esptool2
   - cd esptool2
   - make