forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci]: Set up CI with Azure Pipelines (sonic-net#102)
[skip ci] Signed-off-by: Shilong Liu <[email protected]>
- Loading branch information
1 parent
fa760c4
commit 9d019b0
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# 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 | ||
|
||
pool: sonicbld | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
|
||
pr: | ||
branches: | ||
include: | ||
- master | ||
|
||
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 | ||
# python2 setup.py bdist_wheel | ||
# python3 setup.py bdist_wheel | ||
# mkdir -p target/python-wheels/ | ||
# cp dist/swsssdk-2.0.1-{py2,py3}-none-any.whl target/python-wheels/ | ||
- publish: $(System.DefaultWorkingDirectory)/target/python-wheels/ | ||
artifact: sonic-py-swsssdk | ||
displayName: "Archive artifacts" |