<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>I thinks it's fine to restrict the supported Python versions on Windows.  (Eg., only 2.7 and 3.6.)</p>
<p><br>
</p>
<p>Either way, this is </p>
<p><br>
</p>
<p>Reviewed-by: Jose Fonseca <jfonseca@vmware.com></p>
<p><br>
</p>
<p>I haven't received PATCH 3 and 4 yet.  But 2, 5, 6 are also </p>
<p><br>
</p>
<p></p>
<p style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
Reviewed-by: Jose Fonseca <jfonseca@vmware.com></p>
<p style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
<br>
</p>
<p></p>
<p>Jose</p>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Dylan Baker <dylan@pnwbakers.com><br>
<b>Sent:</b> Tuesday, June 13, 2017 21:59<br>
<b>To:</b> piglit@lists.freedesktop.org<br>
<b>Cc:</b> Jose Fonseca<br>
<b>Subject:</b> [PATCH 7/7] appveyor: Add python tests</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com><br>
---<br>
 appveyor.yml | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--<br>
 1 file changed, 55 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/appveyor.yml b/appveyor.yml<br>
index c83efc757..f4cfa8721 100644<br>
--- a/appveyor.yml<br>
+++ b/appveyor.yml<br>
@@ -43,33 +43,75 @@ cache:<br>
 os: Visual Studio 2015<br>
 <br>
 environment:<br>
-  PYTHON_HOME: C:\Python36<br>
   matrix:<br>
     - MINGW_HOME: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32<br>
+      PYTHON_HOME: C:\Python36<br>
       FREEGLUT_ARCHIVE: freeglut-MinGW-3.0.0-1.mp.zip<br>
       FREEGLUT_LIB: lib\libfreeglut.a<br>
       TEST_TYPE: native<br>
+<br>
     - MINGW_HOME: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64<br>
+      PYTHON_HOME: C:\Python36<br>
       FREEGLUT_ARCHIVE: freeglut-MinGW-3.0.0-1.mp.zip<br>
       FREEGLUT_LIB: lib\x64\libfreeglut.a<br>
       TEST_TYPE: native<br>
+<br>
   # - MSVC_ARCH: x86<br>
+  #   PYTHON_HOME: C:\Python36<br>
   #   FREEGLUT_ARCHIVE: freeglut-MSVC-3.0.0-2.mp.zip<br>
   #   FREEGLUT_LIB: lib\freeglut.lib<br>
   #   TEST_TYPE: native<br>
+<br>
   # - MSVC_ARCH: x86_amd64<br>
+  #   PYTHON_HOME: C:\Python36<br>
   #   FREEGLUT_ARCHIVE: freeglut-MSVC-3.0.0-2.mp.zip<br>
   #   FREEGLUT_LIB: lib\x64\freeglut.lib<br>
   #   TEST_TYPE: native<br>
 <br>
+    - TOXENV: 'py27-{noaccel,accel-win,streams}'<br>
+      TOXPYTHON: C:\Python27\python.exe<br>
+      PYTHON_HOME: C:\Python27<br>
+      PYTHON_VERSION: '2.7'<br>
+      PYTHON_ARCH: '32'<br>
+      TEST_TYPE: python<br>
+<br>
+    - TOXENV: 'py33-{noaccel,accel-win,streams}'<br>
+      TOXPYTHON: C:\Python33\python.exe<br>
+      PYTHON_HOME: C:\Python33<br>
+      PYTHON_VERSION: '3.3'<br>
+      PYTHON_ARCH: '32'<br>
+      TEST_TYPE: python<br>
+<br>
+    - TOXENV: 'py34-{noaccel,accel-win,streams}'<br>
+      TOXPYTHON: C:\Python34\python.exe<br>
+      PYTHON_HOME: C:\Python34<br>
+      PYTHON_VERSION: '3.4'<br>
+      PYTHON_ARCH: '32'<br>
+      TEST_TYPE: python<br>
+<br>
+    - TOXENV: 'py35-{noaccel,accel-win,streams}'<br>
+      TOXPYTHON: C:\Python35\python.exe<br>
+      PYTHON_HOME: C:\Python35<br>
+      PYTHON_VERSION: '3.5'<br>
+      PYTHON_ARCH: '32'<br>
+      TEST_TYPE: python<br>
+<br>
+    - TOXENV: 'py36-{noaccel,accel-win,streams}'<br>
+      TOXPYTHON: C:\Python36\python.exe<br>
+      PYTHON_HOME: C:\Python36<br>
+      PYTHON_VERSION: '3.6'<br>
+      PYTHON_ARCH: '32'<br>
+      TEST_TYPE: python<br>
+<br>
 matrix:<br>
   fast_finish: true<br>
 <br>
 install:<br>
   - ps: |<br>
+      $ENV:Path="$ENV:PYTHON_HOME;$ENV:PYTHON_HOME\Scripts;$ENV:Path"<br>
+<br>
       if ("$ENV:TEST_TYPE" -eq "native") {<br>
         # Setup Python 3<br>
-        $ENV:Path="$ENV:PYTHON_HOME;$ENV:PYTHON_HOME\Scripts;$ENV:Path"<br>
         Write-Host $(pip --version)<br>
         pip install -r python-requirements/minimum.txt<br>
         pip install -r python-requirements/python3-extra.txt<br>
@@ -105,6 +147,11 @@ install:<br>
         # Get glext.h<br>
         mkdir "glext\GL"<br>
         Invoke-WebRequest <a href="https://www.khronos.org/registry/OpenGL/api/GL/glext.h">
https://www.khronos.org/registry/OpenGL/api/GL/glext.h</a> -OutFile glext\GL\glext.h<br>
+      } elseif ("$ENV:TEST_TYPE" -eq "python") {<br>
+        python --version<br>
+        pip --version<br>
+        pip install tox<br>
+        tox --version<br>
       }<br>
 <br>
 build_script:<br>
@@ -114,6 +161,12 @@ build_script:<br>
         ninja -C build<br>
       }<br>
 <br>
+test_script:<br>
+  - ps: |<br>
+      if ("$ENV:TEST_TYPE" -eq "python") {<br>
+        tox<br>
+      }<br>
+<br>
 <br>
 # It's possible to setup notification here, as described in<br>
 # <a href="http://www.appveyor.com/docs/notifications#appveyor-yml-configuration">
http://www.appveyor.com/docs/notifications#appveyor-yml-configuration</a> , but<br>
-- <br>
2.13.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>