Skip to content

Commit

Permalink
[CI] Set up CI&PR with Azure Pipelines (sonic-net#41)
Browse files Browse the repository at this point in the history
[skip ci]

Signed-off-by: Shilong Liu <[email protected]>
  • Loading branch information
liushilongbuaa authored Mar 31, 2021
1 parent cfc86de commit 5615e5c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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:
branches:
include:
- master

pr:
branches:
include:
- master

pool:
vmImage: ubuntu-20.04

stages:
- stage: Build
jobs:
- job:
displayName: "build"
timeoutInMinutes: 60
steps:
- checkout: self
clean: true
submodules: recursive
displayName: 'Checkout code'
- script: |
echo Hello
# the following is copied from jenkins
# set -ex
# ./scripts/common/sonic-mgmt-common-build/build.sh
# ./scripts/common/sonic-mgmt-common-build/test.sh
- publish: $(System.DefaultWorkingDirectory)/target/
artifact: sonic-mgmt-common
displayName: "Archive artifacts"

0 comments on commit 5615e5c

Please sign in to comment.