Skip to content

Commit 9d019b0

Browse files
[ci]: Set up CI with Azure Pipelines (sonic-net#102)
[skip ci] Signed-off-by: Shilong Liu <[email protected]>
1 parent fa760c4 commit 9d019b0

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

azure-pipelines.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Starter pipeline
2+
# Start with a minimal pipeline that you can customize to build and deploy your code.
3+
# Add steps that build, run tests, deploy, and more:
4+
# https://aka.ms/yaml
5+
6+
pool: sonicbld
7+
8+
trigger:
9+
branches:
10+
include:
11+
- master
12+
13+
pr:
14+
branches:
15+
include:
16+
- master
17+
18+
stages:
19+
- stage: Build
20+
jobs:
21+
- job:
22+
displayName: "build"
23+
timeoutInMinutes: 60
24+
steps:
25+
- checkout: self
26+
clean: true
27+
submodules: recursive
28+
displayName: 'Checkout code'
29+
- script: |
30+
echo Hello
31+
# the following is copied from jenkins
32+
# set -ex
33+
# python2 setup.py bdist_wheel
34+
# python3 setup.py bdist_wheel
35+
# mkdir -p target/python-wheels/
36+
# cp dist/swsssdk-2.0.1-{py2,py3}-none-any.whl target/python-wheels/
37+
- publish: $(System.DefaultWorkingDirectory)/target/python-wheels/
38+
artifact: sonic-py-swsssdk
39+
displayName: "Archive artifacts"

0 commit comments

Comments
 (0)