65 строки
1.7 KiB
YAML
65 строки
1.7 KiB
YAML
# 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:
|
|
- job: Linux1804UnitTests
|
|
pool:
|
|
vmImage: ubuntu-18.04
|
|
steps:
|
|
- template: linux/continuous-linux.yml
|
|
|
|
- job: Linux2004UnitTests
|
|
pool:
|
|
vmImage: ubuntu-20.04
|
|
steps:
|
|
- template: linux/continuous-linux.yml
|
|
|
|
- job: RaspberryPiUnitTests
|
|
pool:
|
|
vmImage: ubuntu-latest
|
|
steps:
|
|
- template: raspi/continuous-raspi.yml
|
|
|
|
- job: GithubRelease
|
|
pool:
|
|
vmImage: ubuntu-18.04
|
|
dependsOn:
|
|
- Linux1804UnitTests
|
|
- Linux2004UnitTests
|
|
- 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'
|
|
isDraft: true
|
|
- task: ComponentGovernanceComponentDetection@0
|
|
inputs:
|
|
scanType: 'Register'
|
|
verbosity: 'Verbose'
|
|
alertWarningLevel: 'High' |