Updates firmware during functional tests (#202)

This commit is contained in:
Matt Schulte 2019-04-03 15:06:19 -07:00 коммит произвёл GitHub
Родитель a906b1d213
Коммит 671ac54116
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 34 добавлений и 0 удалений

Просмотреть файл

@ -6,6 +6,10 @@ name: K4A-SDK-$(SourceBranchName)-$(Date:yyyyMMdd)-$(Rev:rrr)
variables:
- name: 'skipComponentGovernaceDetection'
value: true
- name: 'linux_firmware_version'
value: '1.5.946614'
- name: 'windows_firmware_version'
value: '1.5.926614'
trigger:
batch: false
@ -459,6 +463,8 @@ jobs:
- job: WindowsFunctionalTests
displayName: Windows Functional Test
dependsOn: WindowsK4ABuildTest
variables:
firmware_version: "$(windows_firmware_version)"
pool:
name: Analog-FwConnected
demands:
@ -495,12 +501,25 @@ jobs:
targetFolder: "$(System.ArtifactsDirectory)/amd64-windows-msvc-RelWithDebInfo/bin"
flattenFolders: true
- task: UniversalPackages@0
displayName: 'Download Azure Kinect Firmware'
inputs:
command: download
vstsFeed: 'analog.ai.depthcamera'
vstsFeedPackage: 'azure-kinect-firmware'
vstsPackageVersion: "$(firmware_version)"
downloadDirectory: "$(System.ArtifactsDirectory)/firmware"
- task: PowerShell@2
inputs:
targetType: 'filePath'
filePath: './scripts/Reset-Device.ps1'
displayName: 'Reset K4A Device'
- script: '.\amd64-windows-msvc-RelWithDebInfo\bin\AzureKinectFirmwareTool.exe -u firmware/AzureKinect_Fw_$(firmware_version).bin'
workingDirectory: '$(System.ArtifactsDirectory)'
displayName: 'Update Device'
- script: '.\amd64-windows-msvc-RelWithDebInfo\bin\enumerate_devices.exe'
workingDirectory: '$(System.ArtifactsDirectory)'
displayName: 'Check Device Health'
@ -527,6 +546,8 @@ jobs:
- job: LinuxFunctionalTests
displayName: Linux Functional Test
dependsOn: LinuxK4ABuildTest
variables:
firmware_version: "$(linux_firmware_version)"
pool:
name: Analog-FwConnected
demands:
@ -546,6 +567,15 @@ jobs:
artifactName: 'x86_64-linux-clang-RelWithDebInfo'
parallelizationLimit: 8
- task: UniversalPackages@0
displayName: 'Download Azure Kinect Firmware'
inputs:
command: download
vstsFeed: 'analog.ai.depthcamera'
vstsFeedPackage: 'azure-kinect-firmware'
vstsPackageVersion: "$(firmware_version)"
downloadDirectory: "$(System.ArtifactsDirectory)/firmware"
- task: UniversalPackages@0
displayName: 'Download DepthEngine Plugin'
inputs:
@ -604,6 +634,10 @@ jobs:
workingDirectory: '$(System.ArtifactsDirectory)/findconnectedport/linux/'
displayName: 'Reset K4A Device'
- script: './x86_64-linux-clang-relwithdebinfo/bin/AzureKinectFirmwareTool -u firmware/AzureKinect_Fw_$(firmware_version).bin'
workingDirectory: '$(System.ArtifactsDirectory)'
displayName: 'Update Device'
- script: './x86_64-linux-clang-relwithdebinfo/bin/enumerate_devices'
workingDirectory: '$(System.ArtifactsDirectory)'
displayName: 'Check Device Health'