2021-05-19 06:55:37 +03:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
|
|
|
# Licensed under the MIT License.
|
|
|
|
|
|
|
|
# Starter pipeline
|
|
|
|
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
|
|
|
# Add steps that build, run tests, deploy, and more:
|
|
|
|
# https://aka.ms/yaml
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
- main
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- stage: UnitTest
|
|
|
|
displayName: Unit Tests
|
|
|
|
jobs:
|
2022-02-09 22:42:04 +03:00
|
|
|
- job: Linux1804UnitTests
|
2021-05-19 06:55:37 +03:00
|
|
|
pool:
|
|
|
|
vmImage: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- template: linux/continuous-linux.yml
|
|
|
|
|
2022-02-09 22:42:04 +03:00
|
|
|
- job: Linux2004UnitTests
|
|
|
|
pool:
|
|
|
|
vmImage: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- template: linux/continuous-linux.yml
|
|
|
|
|
2021-05-19 06:55:37 +03:00
|
|
|
- job: RaspberryPiUnitTests
|
|
|
|
pool:
|
|
|
|
vmImage: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- template: raspi/continuous-raspi.yml
|
|
|
|
|
|
|
|
- job: GithubRelease
|
2021-11-05 01:35:32 +03:00
|
|
|
pool:
|
|
|
|
vmImage: ubuntu-18.04
|
2021-05-19 06:55:37 +03:00
|
|
|
dependsOn:
|
2022-02-09 22:42:04 +03:00
|
|
|
- Linux1804UnitTests
|
|
|
|
- Linux2004UnitTests
|
2021-05-19 06:55:37 +03:00
|
|
|
- RaspberryPiUnitTests
|
|
|
|
condition: and(succeeded('LinuxUnitTests'), succeeded('RaspberryPiUnitTests'))
|
|
|
|
steps:
|
|
|
|
- script: |
|
|
|
|
mkdir dest
|
|
|
|
cp src/*.sh dest/
|
|
|
|
displayName: Create dest/ directory
|
|
|
|
- task: GitHubRelease@1
|
|
|
|
displayName: 'GitHub release (create) RC'
|
|
|
|
inputs:
|
|
|
|
gitHubConnection: 'github.com_cindydeng1998'
|
|
|
|
tagPattern: '^v?[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+$'
|
|
|
|
assets: 'dest/*.sh'
|
|
|
|
isDraft: true
|
|
|
|
- task: GitHubRelease@1
|
|
|
|
displayName: 'GitHub release (create)'
|
|
|
|
inputs:
|
|
|
|
gitHubConnection: 'github.com_cindydeng1998'
|
|
|
|
tagPattern: '^v?[0-9]+\.[0-9]+\.[0-9]+$'
|
|
|
|
assets: 'dest/*.sh'
|
2021-08-03 01:51:22 +03:00
|
|
|
isDraft: true
|
|
|
|
- task: ComponentGovernanceComponentDetection@0
|
|
|
|
inputs:
|
|
|
|
scanType: 'Register'
|
|
|
|
verbosity: 'Verbose'
|
|
|
|
alertWarningLevel: 'High'
|