Skip to content

Commit 0dd8907

Browse files
authored
add pipeline for stml4s5 (#260)
* add pipeline for stml4s5 * add l4s5 build badge
1 parent 83b20dd commit 0dd8907

File tree

2 files changed

+87
-1
lines changed

2 files changed

+87
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The following guides will get you started:
2222
|[Renesas RX65N Cloud Kit](Renesas/RX65N_Cloud_Kit)|![](https://github.com/azure-rtos/getting-started/workflows/RX65N-Cloud-Kit/badge.svg)||
2323
|[Renesas RSK+RX65N-2MB](Renesas/RSK_RX65N_2MB)|![](https://github.com/azure-rtos/getting-started/workflows/RSK-RX65N-2MB/badge.svg)||
2424
|[STMicroelectronics B-L475E-IOT01A](STMicroelectronics/STM32L4_L4+)|![](https://github.com/azure-rtos/getting-started/workflows/STM32L4_L4+/badge.svg)|![](https://expresslogic.visualstudio.com/DeviceLab%20AzureRTOS%20GSG/_apis/build/status/azure-rtos.getting-started.stm.l475?repoName=azure-rtos%2Fgetting-started&branchName=master)|
25-
|[STMicroelectronics B-L4S5I-IOT01A](STMicroelectronics/STM32L4_L4+)|![](https://github.com/azure-rtos/getting-started/workflows/STM32L4_L4+/badge.svg)||
25+
|[STMicroelectronics B-L4S5I-IOT01A](STMicroelectronics/STM32L4_L4+)|![](https://github.com/azure-rtos/getting-started/workflows/STM32L4_L4+/badge.svg)|![](https://expresslogic.visualstudio.com/DeviceLab%20AzureRTOS%20GSG/_apis/build/status/azure-rtos.getting-started.stm.l4s5?repoName=azure-rtos%2Fgetting-started&branchName=master)|
2626

2727
**Build Status:** A GitHub workflow building on Windows & Linux.
2828

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: $(BuildID)_$(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
2+
3+
resources:
4+
repositories:
5+
- repository: Device-Lab
6+
type: git
7+
endpoint: azure-iot-dde
8+
name: Device-Lab/Device-Lab
9+
10+
trigger:
11+
batch: true
12+
branches:
13+
include:
14+
- master
15+
paths:
16+
exclude:
17+
- doc/*
18+
19+
jobs:
20+
- job: STM_Build
21+
pool:
22+
name: 'DDE'
23+
demands:
24+
- STMBL4S5IIOT01A -equals true
25+
steps:
26+
- checkout: self
27+
clean: true
28+
submodules: recursive
29+
- checkout: Device-Lab
30+
clean: true
31+
32+
# Azure CLI to start certification
33+
- task: AzureCLI@2
34+
inputs:
35+
azureSubscription: 'IoT-DDE-team-subscription'
36+
scriptType: 'ps'
37+
scriptLocation: 'scriptPath'
38+
scriptPath: '$(Build.SourcesDirectory)\Device-Lab\generate_creds.ps1'
39+
arguments: '$(Build.SourcesDirectory)\getting-started\core\model'
40+
useGlobalConfig: true
41+
displayName: "Start Certification"
42+
43+
# modify config with credentials
44+
- task: PowerShell@2
45+
inputs:
46+
targetType: 'filePath'
47+
filePath: '$(Build.SourcesDirectory)\Device-Lab\update_config.ps1'
48+
arguments: > # Use this to avoid newline characters in multiline string
49+
-ConfigFilePath '$(Build.SourcesDirectory)\getting-started\STMicroelectronics\STM32L4_L4+\app\azure_config.h'
50+
displayName: 'Modify config file'
51+
52+
# Build binary
53+
- script: |
54+
echo %PATH%
55+
cd $(Build.SourcesDirectory)\getting-started\STMicroelectronics\STM32L4_L4+\tools
56+
.\rebuild.bat
57+
displayName: "Build Binary"
58+
59+
# Flash binary to hardware
60+
- task: PowerShell@2
61+
inputs:
62+
targetType: 'filePath'
63+
filePath: '$(Build.SourcesDirectory)\Device-Lab\flashing_tools\flash-board.ps1'
64+
arguments: > # Use this to avoid newline characters in multiline string
65+
-BinPath '$(Build.SourcesDirectory)\getting-started\STMicroelectronics\STM32L4_L4+\build\app\stm32l4S5_azure_iot.hex'
66+
displayName: 'Flash binary'
67+
68+
# Monitor device for successful connection to Iot Hub
69+
- task: PowerShell@2
70+
inputs:
71+
targetType: 'filePath'
72+
filePath: '$(Build.SourcesDirectory)\Device-Lab\scan_serial.ps1'
73+
arguments: > # Use this to avoid newline characters in multiline string
74+
-TestString 'SUCCESS: Azure IoT Hub client initialized'
75+
displayName: 'Scan serial port'
76+
77+
# Azure CLI to run certification
78+
- task: AzureCLI@2
79+
inputs:
80+
azureSubscription: 'IoT-DDE-team-subscription'
81+
scriptType: 'ps'
82+
scriptLocation: 'scriptPath'
83+
scriptPath: '$(Build.SourcesDirectory)\Device-Lab\run_certification.ps1'
84+
arguments: $(TESTID)
85+
useGlobalConfig: true
86+
displayName: "Run Certification"

0 commit comments

Comments
 (0)