From 9d6d0fb8aa332143634f13c1518e37b7450f9f40 Mon Sep 17 00:00:00 2001 From: Jasmine Lo Date: Wed, 23 Jun 2021 23:35:08 -0700 Subject: [PATCH 1/2] add pipeline for stml4s5 --- .../STM32L4_L4+/azure-pipelines-l4s5.yml | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 STMicroelectronics/STM32L4_L4+/azure-pipelines-l4s5.yml diff --git a/STMicroelectronics/STM32L4_L4+/azure-pipelines-l4s5.yml b/STMicroelectronics/STM32L4_L4+/azure-pipelines-l4s5.yml new file mode 100644 index 00000000..c6661be4 --- /dev/null +++ b/STMicroelectronics/STM32L4_L4+/azure-pipelines-l4s5.yml @@ -0,0 +1,86 @@ +name: $(BuildID)_$(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r) + +resources: + repositories: + - repository: Device-Lab + type: git + endpoint: azure-iot-dde + name: Device-Lab/Device-Lab + +trigger: + batch: true + branches: + include: + - master + paths: + exclude: + - doc/* + +jobs: +- job: STM_Build + pool: + name: 'DDE' + demands: + - STMBL4S5IIOT01A -equals true + steps: + - checkout: self + clean: true + submodules: recursive + - checkout: Device-Lab + clean: true + + # Azure CLI to start certification + - task: AzureCLI@2 + inputs: + azureSubscription: 'IoT-DDE-team-subscription' + scriptType: 'ps' + scriptLocation: 'scriptPath' + scriptPath: '$(Build.SourcesDirectory)\Device-Lab\generate_creds.ps1' + arguments: '$(Build.SourcesDirectory)\getting-started\core\model' + useGlobalConfig: true + displayName: "Start Certification" + + # modify config with credentials + - task: PowerShell@2 + inputs: + targetType: 'filePath' + filePath: '$(Build.SourcesDirectory)\Device-Lab\update_config.ps1' + arguments: > # Use this to avoid newline characters in multiline string + -ConfigFilePath '$(Build.SourcesDirectory)\getting-started\STMicroelectronics\STM32L4_L4+\app\azure_config.h' + displayName: 'Modify config file' + + # Build binary + - script: | + echo %PATH% + cd $(Build.SourcesDirectory)\getting-started\STMicroelectronics\STM32L4_L4+\tools + .\rebuild.bat + displayName: "Build Binary" + + # Flash binary to hardware + - task: PowerShell@2 + inputs: + targetType: 'filePath' + filePath: '$(Build.SourcesDirectory)\Device-Lab\flashing_tools\flash-board.ps1' + arguments: > # Use this to avoid newline characters in multiline string + -BinPath '$(Build.SourcesDirectory)\getting-started\STMicroelectronics\STM32L4_L4+\build\app\stm32l4S5_azure_iot.hex' + displayName: 'Flash binary' + + # Monitor device for successful connection to Iot Hub + - task: PowerShell@2 + inputs: + targetType: 'filePath' + filePath: '$(Build.SourcesDirectory)\Device-Lab\scan_serial.ps1' + arguments: > # Use this to avoid newline characters in multiline string + -TestString 'SUCCESS: Azure IoT Hub client initialized' + displayName: 'Scan serial port' + + # Azure CLI to run certification + - task: AzureCLI@2 + inputs: + azureSubscription: 'IoT-DDE-team-subscription' + scriptType: 'ps' + scriptLocation: 'scriptPath' + scriptPath: '$(Build.SourcesDirectory)\Device-Lab\run_certification.ps1' + arguments: $(TESTID) + useGlobalConfig: true + displayName: "Run Certification" From 75b590492f47beca4115d91d12f52500ff895831 Mon Sep 17 00:00:00 2001 From: Jasmine Lo Date: Thu, 24 Jun 2021 11:39:16 -0700 Subject: [PATCH 2/2] add l4s5 build badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e870d92c..f18594a0 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ The following guides will get you started: |[Renesas RX65N Cloud Kit](Renesas/RX65N_Cloud_Kit)|![](https://github.com/azure-rtos/getting-started/workflows/RX65N-Cloud-Kit/badge.svg)|| |[Renesas RSK+RX65N-2MB](Renesas/RSK_RX65N_2MB)|![](https://github.com/azure-rtos/getting-started/workflows/RSK-RX65N-2MB/badge.svg)|| |[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)| -|[STMicroelectronics B-L4S5I-IOT01A](STMicroelectronics/STM32L4_L4+)|![](https://github.com/azure-rtos/getting-started/workflows/STM32L4_L4+/badge.svg)|| +|[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)| **Build Status:** A GitHub workflow building on Windows & Linux.