variables: YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn NEXT_TELEMETRY_DISABLED: '1' node_version: ^10.10.0 stages: - stage: Build jobs: - job: build pool: vmImage: 'windows-2019' steps: - script: echo $(Agent.BuildDirectory) - script: dir - script: dir $(System.DefaultWorkingDirectory) - script: echo $(Build.SourceVersion) - powershell: Set-MpPreference -ExclusionPath $(System.DefaultWorkingDirectory) - powershell: Set-MpPreference -ExclusionPath $(Pipeline.Workspace)/.yarn - powershell: Set-MpPreference -DisableIntrusionPreventionSystem $true -DisableIOAVProtection $true -DisableRealtimeMonitoring $true -DisableScriptScanning $true -EnableControlledFolderAccess Disabled -EnableNetworkProtection AuditMode -Force -MAPSReporting Disabled -SubmitSamplesConsent NeverSend - powershell: Get-MpComputerStatus - task: NodeTool@0 inputs: versionSpec: $(node_version) displayName: 'Install Node.js' - task: Cache@2 inputs: # use deterministic cache key that is specific # to this test run key: $(Build.SourceVersion) path: $(System.DefaultWorkingDirectory) displayName: Cache Build - script: | yarn install --frozen-lockfile --check-files displayName: 'Install dependencies' - script: | node run-tests.js --timings --write-timings --azure -g 1/4 displayName: 'Fetch test timing data' - stage: Test dependsOn: Build jobs: - job: test_ie11 pool: vmImage: 'windows-2019' steps: - checkout: none - powershell: Set-MpPreference -ExclusionPath $(System.DefaultWorkingDirectory) - powershell: Set-MpPreference -ExclusionPath $(Pipeline.Workspace)/.yarn - powershell: Set-MpPreference -DisableIntrusionPreventionSystem $true -DisableIOAVProtection $true -DisableRealtimeMonitoring $true -DisableScriptScanning $true -EnableControlledFolderAccess Disabled -EnableNetworkProtection AuditMode -Force -MAPSReporting Disabled -SubmitSamplesConsent NeverSend - task: NodeTool@0 inputs: versionSpec: $(node_version) displayName: 'Install Node.js' - task: Cache@2 inputs: # use deterministic cache key that is specific # to this test run key: $(Build.SourceVersion) path: $(System.DefaultWorkingDirectory) displayName: Cache Build - script: | yarn testie --forceExit test/integration/production/ displayName: 'Run tests' - job: test_chrome pool: vmImage: 'windows-2019' strategy: matrix: node-10-1: group: 1/4 node-10-2: group: 2/4 node-10-3: group: 3/4 node-10-4: group: 4/4 steps: - checkout: none - powershell: Set-MpPreference -ExclusionPath $(System.DefaultWorkingDirectory) - powershell: Set-MpPreference -ExclusionPath $(Pipeline.Workspace)/.yarn - powershell: Set-MpPreference -DisableIntrusionPreventionSystem $true -DisableIOAVProtection $true -DisableRealtimeMonitoring $true -DisableScriptScanning $true -EnableControlledFolderAccess Disabled -EnableNetworkProtection AuditMode -Force -MAPSReporting Disabled -SubmitSamplesConsent NeverSend - script: | wmic datafile where name="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" get Version /value displayName: 'List Chrome version' - task: NodeTool@0 inputs: versionSpec: $(node_version) displayName: 'Install Node.js' - task: Cache@2 inputs: # use deterministic cache key that is specific # to this test run key: $(Build.SourceVersion) path: $(System.DefaultWorkingDirectory) displayName: Cache Build - script: | node run-tests.js -g $(group) --timings --azure displayName: 'Run tests'