Просмотр исходного кода

Create temporary PR validation which just compiles, without tests (#4475)

Nate McMaster 7 лет назад
Родитель
Сommit
b15c766d20

+ 2 - 8
.azure/pipelines/fast-pr-validation.yml → .azure/pipelines/ci.yml

@@ -1,4 +1,4 @@
-# Don't run CI for this config
+# Don't run CI for this config yet. We're not ready to move official builds on to Azure Pipelines
 trigger: none
 
 # Run PR validation on all branches
@@ -8,16 +8,10 @@ pr:
     - '*'
 
 jobs:
-- template: jobs/default-build.yml
-  parameters:
-    jobName: PR_FastCheck
-    jobDisplayName: Fast Check
-    agentOs: Windows
-    buildArgs: "/t:FastCheck"
 - template: jobs/default-build.yml
   parameters:
     jobName: Windows_Build
-    jobDisplayName: "Build: Windows"
+    jobDisplayName: "Build and test: Windows"
     agentOs: Windows
     beforeBuild:
     - powershell: "& ./src/IISIntegration/tools/UpdateIISExpressCertificate.ps1; & ./src/IISIntegration/tools/update_schema.ps1"

+ 3 - 0
.azure/pipelines/jobs/default-build.yml

@@ -103,6 +103,9 @@ jobs:
   steps:
   - checkout: self
     clean: true
+  - task: NodeTool@0
+    inputs:
+      versionSpec: 10.x
   - ${{ if and(eq(parameters.agentOs, 'Windows'), eq(parameters.codeSign, 'true')) }}:
     - task: MicroBuildSigningPlugin@1
       displayName: Install MicroBuild Signing plugin

+ 30 - 0
.azure/pipelines/pr-validation-temp.yml

@@ -0,0 +1,30 @@
+# This configuration is temporary while we work on getting all unit tests to pass on PR checks
+
+# Don't run CI for this config
+trigger: none
+
+# Run PR validation on all branches
+pr:
+  branches:
+    include:
+    - '*'
+
+jobs:
+- template: jobs/default-build.yml
+  parameters:
+    jobName: Windows_Build
+    jobDisplayName: "Build only : Windows"
+    agentOs: Windows
+    buildArgs: '/p:SkipTests=true'
+- template: jobs/default-build.yml
+  parameters:
+    jobName: macOs_Build
+    jobDisplayName: "Build only : macOS"
+    agentOs: macOS
+    buildArgs: '/p:SkipTests=true'
+- template: jobs/default-build.yml
+  parameters:
+    jobName: Linux_Build
+    jobDisplayName: "Build only : Linux"
+    agentOs: Linux
+    buildArgs: '/p:SkipTests=true'