Skip to content

Commit 7195dcc

Browse files
authored
Remove py2 from pipeline (sonic-net#242)
1 parent c2e7393 commit 7195dcc

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

azure-pipelines.yml

-32
Original file line numberDiff line numberDiff line change
@@ -32,31 +32,24 @@ parameters:
3232
default:
3333
- name: chassisd
3434
root_dir: sonic-chassisd
35-
python2: false
3635
python3: true
3736
- name: ledd
3837
root_dir: sonic-ledd
39-
python2: true
4038
python3: true
4139
- name: pcied
4240
root_dir: sonic-pcied
43-
python2: true
4441
python3: true
4542
- name: psud
4643
root_dir: sonic-psud
47-
python2: true
4844
python3: true
4945
- name: syseepromd
5046
root_dir: sonic-syseepromd
51-
python2: true
5247
python3: true
5348
- name: thermalctld
5449
root_dir: sonic-thermalctld
55-
python2: true
5650
python3: true
5751
- name: xcvrd
5852
root_dir: sonic-xcvrd
59-
python2: true
6053
python3: true
6154
- name: ycabled
6255
root_dir: sonic-ycabled
@@ -107,10 +100,6 @@ jobs:
107100
108101
- script: |
109102
set -xe
110-
sudo pip2 install swsssdk-2.0.1-py2-none-any.whl
111-
sudo pip2 install sonic_py_common-1.0-py2-none-any.whl
112-
sudo pip2 install sonic_config_engine-1.0-py2-none-any.whl
113-
sudo pip2 install sonic_platform_common-1.0-py2-none-any.whl
114103
sudo pip3 install swsssdk-2.0.1-py3-none-any.whl
115104
sudo pip3 install sonic_py_common-1.0-py3-none-any.whl
116105
sudo pip3 install sonic_yang_mgmt-1.0-py3-none-any.whl
@@ -130,27 +119,6 @@ jobs:
130119
displayName: "Install .NET CORE"
131120
132121
- ${{ each project in parameters.project_list }}:
133-
# Python 2
134-
- ${{ if eq(project.python2, true) }}:
135-
- script: |
136-
python2 setup.py test
137-
workingDirectory: ${{ project.root_dir }}
138-
displayName: '${{ project.name }}(Py2) Test'
139-
140-
- task: PublishTestResults@2
141-
inputs:
142-
testResultsFiles: '$(System.DefaultWorkingDirectory)/${{ project.root_dir }}/test-results.xml'
143-
testRunTitle: ${{ project.name }} (Python 2)
144-
failTaskOnFailedTests: true
145-
condition: succeededOrFailed()
146-
displayName: '${{ project.name }}(Py2) Publish test results'
147-
148-
- script: |
149-
set -e
150-
python2 setup.py bdist_wheel
151-
workingDirectory: ${{ project.root_dir }}
152-
displayName: '${{ project.name }}(Py2) Build'
153-
154122
# Python 3
155123
- ${{ if eq(project.python3, true) }}:
156124
- script: |

0 commit comments

Comments
 (0)