Skip to content

Commit

Permalink
Merge pull request #1722 from microsoft/build_pydevd_binaries
Browse files Browse the repository at this point in the history
Build pydevd binaries before running tests
  • Loading branch information
AdamYoblick authored Nov 5, 2024
2 parents 740fa9d + 1eb92e6 commit abf4bb6
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions azure-pipelines/pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pr:

variables:
architecture: "x64"
PYDEVD_ATTACH_TO_PROCESS: src/debugpy/_vendored/pydevd/pydevd_attach_to_process

jobs:

Expand Down Expand Up @@ -78,6 +79,20 @@ jobs:
- template: "templates/use_python.yml"

# Clean up old binaries
- task: DeleteFiles@1
displayName: Clean up old binaries
inputs:
SourceFolder: $(Build.SourcesDirectory)/$(PYDEVD_ATTACH_TO_PROCESS)
Contents: |
*.so
# Build pydevd binaries
- task: Bash@3
displayName: Build pydevd binaries
inputs:
filepath: $(Build.SourcesDirectory)/$(PYDEVD_ATTACH_TO_PROCESS)/linux_and_mac/compile_linux.sh

- template: "templates/run_tests.yml"

- job: "Test_MacOS"
Expand Down Expand Up @@ -108,6 +123,20 @@ jobs:
- script: "python -m ensurepip --user"
displayName: "Bootstrap pip"

# Clean up old binaries
- task: DeleteFiles@1
displayName: Clean up old binaries
inputs:
SourceFolder: $(Build.SourcesDirectory)/$(PYDEVD_ATTACH_TO_PROCESS)
Contents: |
*.so
# Build pydevd binaries
- task: Bash@3
displayName: Build pydevd binaries
inputs:
filepath: $(Build.SourcesDirectory)/$(PYDEVD_ATTACH_TO_PROCESS)/linux_and_mac/compile_mac.sh

- template: "templates/run_tests.yml"

- job: "Test_Windows"
Expand Down Expand Up @@ -135,4 +164,21 @@ jobs:

- template: "templates/use_python.yml"

# Clean up old binaries
- task: DeleteFiles@1
displayName: Clean up old binaries
inputs:
SourceFolder: $(Build.SourcesDirectory)\$(PYDEVD_ATTACH_TO_PROCESS)
Contents: |
*.exe
*.dll
*.pdb
# Build pydevd binaries
- task: BatchScript@1
displayName: Build pydevd binaries
inputs:
filename: $(Build.SourcesDirectory)\$(PYDEVD_ATTACH_TO_PROCESS)\windows\compile_windows.bat
workingFolder: $(Build.SourcesDirectory)\$(PYDEVD_ATTACH_TO_PROCESS)\windows

- template: "templates/run_tests.yml"

0 comments on commit abf4bb6

Please sign in to comment.