Explorar el Código

Introduce MSVC CI

Add MSVC CI jobs, testing on latest Windows VM image using build and
test wrappers. Assign 6 jobs to 'nix CI (all it needs) and the remaining
4 - to MCVS, as it is much faster.

For #6547
Petr Penzin hace 5 años
padre
commit
40e96aabb9
Se han modificado 1 ficheros con 47 adiciones y 0 borrados
  1. 47 0
      azure-pipelines.yml

+ 47 - 0
azure-pipelines.yml

@@ -6,6 +6,7 @@ jobs:
   - job: CMake
     timeoutInMinutes: 120
     strategy:
+      maxParallel: 6
       matrix:
         Linux.Debug:
           image_name: 'ubuntu-latest'
@@ -69,3 +70,49 @@ jobs:
       displayName: 'Build and test'
       env:
         TARGET: $(test_target)
+
+  - job: MSVC
+    timeoutInMinutes: 120
+    pool:
+      vmImage: 'windows-latest'
+    strategy:
+      maxParallel: 4
+      matrix:
+        x86.Debug:
+          build_type: 'debug'
+          target: 'x86'
+          do_test: true
+        x86.Test:
+          build_type: 'test'
+          target: 'x86'
+          do_test: true
+        x86.Release:
+          build_type: 'release'
+          target: 'x86'
+          do_test: false
+        x64.Debug:
+          build_type: 'debug'
+          target: 'x64'
+          do_test: true
+        x64.Test:
+          build_type: 'test'
+          target: 'x64'
+          do_test: true
+        x64.Release:
+          build_type: 'release'
+          target: 'x64'
+          do_test: false
+      
+    steps:
+    - script: jenkins\buildone.cmd %TARGET% %BUILD%
+      displayName: 'Build'
+      env:
+        TARGET: $(target)
+        BUILD: $(build_type)
+
+    - script: jenkins\testone.cmd %TARGET% %BUILD%
+      displayName: 'Test'
+      condition: eq(variables['do_test'], true)
+      env:
+        TARGET: $(target)
+        BUILD: $(build_type)