Skip to content

Commit abf4bb6

Browse files
authored
Merge pull request #1722 from microsoft/build_pydevd_binaries
Build pydevd binaries before running tests
2 parents 740fa9d + 1eb92e6 commit abf4bb6

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

azure-pipelines/pipelines.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pr:
1919

2020
variables:
2121
architecture: "x64"
22+
PYDEVD_ATTACH_TO_PROCESS: src/debugpy/_vendored/pydevd/pydevd_attach_to_process
2223

2324
jobs:
2425

@@ -78,6 +79,20 @@ jobs:
7879
7980
- template: "templates/use_python.yml"
8081

82+
# Clean up old binaries
83+
- task: DeleteFiles@1
84+
displayName: Clean up old binaries
85+
inputs:
86+
SourceFolder: $(Build.SourcesDirectory)/$(PYDEVD_ATTACH_TO_PROCESS)
87+
Contents: |
88+
*.so
89+
90+
# Build pydevd binaries
91+
- task: Bash@3
92+
displayName: Build pydevd binaries
93+
inputs:
94+
filepath: $(Build.SourcesDirectory)/$(PYDEVD_ATTACH_TO_PROCESS)/linux_and_mac/compile_linux.sh
95+
8196
- template: "templates/run_tests.yml"
8297

8398
- job: "Test_MacOS"
@@ -108,6 +123,20 @@ jobs:
108123
- script: "python -m ensurepip --user"
109124
displayName: "Bootstrap pip"
110125

126+
# Clean up old binaries
127+
- task: DeleteFiles@1
128+
displayName: Clean up old binaries
129+
inputs:
130+
SourceFolder: $(Build.SourcesDirectory)/$(PYDEVD_ATTACH_TO_PROCESS)
131+
Contents: |
132+
*.so
133+
134+
# Build pydevd binaries
135+
- task: Bash@3
136+
displayName: Build pydevd binaries
137+
inputs:
138+
filepath: $(Build.SourcesDirectory)/$(PYDEVD_ATTACH_TO_PROCESS)/linux_and_mac/compile_mac.sh
139+
111140
- template: "templates/run_tests.yml"
112141

113142
- job: "Test_Windows"
@@ -135,4 +164,21 @@ jobs:
135164

136165
- template: "templates/use_python.yml"
137166

167+
# Clean up old binaries
168+
- task: DeleteFiles@1
169+
displayName: Clean up old binaries
170+
inputs:
171+
SourceFolder: $(Build.SourcesDirectory)\$(PYDEVD_ATTACH_TO_PROCESS)
172+
Contents: |
173+
*.exe
174+
*.dll
175+
*.pdb
176+
177+
# Build pydevd binaries
178+
- task: BatchScript@1
179+
displayName: Build pydevd binaries
180+
inputs:
181+
filename: $(Build.SourcesDirectory)\$(PYDEVD_ATTACH_TO_PROCESS)\windows\compile_windows.bat
182+
workingFolder: $(Build.SourcesDirectory)\$(PYDEVD_ATTACH_TO_PROCESS)\windows
183+
138184
- template: "templates/run_tests.yml"

0 commit comments

Comments
 (0)