Disable tests for ARM legs
This commit is contained in:
parent
d4db5e64b5
commit
c4452f06c7
3 changed files with 46 additions and 5 deletions
|
@ -25,9 +25,20 @@ phases:
|
|||
AdditionalBuildParameters: $(_AdditionalBuildParameters)
|
||||
|
||||
steps:
|
||||
- script: 'eng\setcitestinfo.bat $(BuildArchitecture)'
|
||||
condition: eq(variables['_AgentOSName'], 'Windows_NT')
|
||||
displayName: Set test info (Windows)
|
||||
- script: 'eng/setcitestinfo.sh $(BuildArchitecture)'
|
||||
condition: ne(variables['_AgentOSName'], 'Windows_NT')
|
||||
displayName: Set test info (Non-Windows)
|
||||
- script: 'echo TestParameter: $(TestParameter)'
|
||||
displayName: Show TestParameter
|
||||
- script: 'echo RunTests: $(RunTests)'
|
||||
displayName: Show RunTests
|
||||
- ${{ if eq(parameters.agentOs, 'Windows_NT') }}:
|
||||
- script: build.cmd
|
||||
-test -pack -publish
|
||||
$(TestParameter)
|
||||
-pack -publish
|
||||
-Configuration $(BuildConfig)
|
||||
-Architecture $(BuildArchitecture)
|
||||
$(AdditionalBuildParameters)
|
||||
|
@ -38,7 +49,8 @@ phases:
|
|||
|
||||
- ${{ if eq(parameters.agentOs, 'Linux') }}:
|
||||
- script: ./build.sh
|
||||
--test --pack --publish
|
||||
$(TestParameter)
|
||||
--pack --publish
|
||||
--noprettyprint
|
||||
--configuration $(BuildConfig)
|
||||
$(DockerParameter)
|
||||
|
@ -52,7 +64,8 @@ phases:
|
|||
|
||||
- ${{ if eq(parameters.agentOs, 'Darwin') }}:
|
||||
- script: ./build.sh
|
||||
--test --pack --publish
|
||||
$(TestParameter)
|
||||
--pack --publish
|
||||
--noprettyprint
|
||||
--configuration $(BuildConfig)
|
||||
displayName: Build
|
||||
|
@ -65,8 +78,7 @@ phases:
|
|||
testRunTitle: '$(_AgentOSName)_$(Agent.JobName)'
|
||||
platform: '$(BuildPlatform)'
|
||||
configuration: '$(_BuildConfig)'
|
||||
condition: and(succeededOrFailed(), ne(variables['PB_SkipTests'], 'true'))
|
||||
|
||||
condition: and(succeededOrFailed(), ne(variables['PB_SkipTests'], 'true'), ne(variables['RunTests'], 'false'))
|
||||
- task: CopyFiles@2
|
||||
displayName: Gather Logs
|
||||
inputs:
|
||||
|
|
15
eng/setcitestinfo.bat
Normal file
15
eng/setcitestinfo.bat
Normal file
|
@ -0,0 +1,15 @@
|
|||
@echo off
|
||||
|
||||
setlocal
|
||||
|
||||
set Architecture=%1
|
||||
|
||||
IF /I "%Architecture:~0,3%"=="ARM" (
|
||||
ECHO ARM
|
||||
ECHO ##vso[task.setvariable variable=TestParameter]
|
||||
ECHO ##vso[task.setvariable variable=RunTests]false
|
||||
) ELSE (
|
||||
ECHO NOT ARM
|
||||
ECHO ##vso[task.setvariable variable=TestParameter]-test
|
||||
ECHO ##vso[task.setvariable variable=RunTests]true
|
||||
)
|
14
eng/setcitestinfo.sh
Executable file
14
eng/setcitestinfo.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
shopt -s nocasematch
|
||||
|
||||
if [[ "$1" == ARM* ]]
|
||||
then
|
||||
echo "ARM"
|
||||
echo "##vso[task.setvariable variable=TestParameter]"
|
||||
echo "##vso[task.setvariable variable=RunTests]false"
|
||||
else
|
||||
echo "NOT ARM"
|
||||
echo "##vso[task.setvariable variable=TestParameter]--test"
|
||||
echo "##vso[task.setvariable variable=RunTests]true"
|
||||
fi
|
Loading…
Add table
Reference in a new issue