|
19 | 19 |
|
20 | 20 | variables: |
21 | 21 | architecture: "x64" |
| 22 | + PYDEVD_ATTACH_TO_PROCESS: src/debugpy/_vendored/pydevd/pydevd_attach_to_process |
22 | 23 |
|
23 | 24 | jobs: |
24 | 25 |
|
|
78 | 79 |
|
79 | 80 | - template: "templates/use_python.yml" |
80 | 81 |
|
| 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 | + |
81 | 96 | - template: "templates/run_tests.yml" |
82 | 97 |
|
83 | 98 | - job: "Test_MacOS" |
@@ -108,6 +123,20 @@ jobs: |
108 | 123 | - script: "python -m ensurepip --user" |
109 | 124 | displayName: "Bootstrap pip" |
110 | 125 |
|
| 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 | + |
111 | 140 | - template: "templates/run_tests.yml" |
112 | 141 |
|
113 | 142 | - job: "Test_Windows" |
@@ -135,4 +164,21 @@ jobs: |
135 | 164 |
|
136 | 165 | - template: "templates/use_python.yml" |
137 | 166 |
|
| 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 | + |
138 | 184 | - template: "templates/run_tests.yml" |
0 commit comments