Skip to content

Commit

Permalink
Build pydevd binaries before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamYoblick committed Nov 5, 2024
1 parent 740fa9d commit 8f2aed1
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)/debugpy/$(PYDEVD_ATTACH_TO_PROCESS)
Contents: |
*.so
# Build pydevd binaries
- task: Bash@3
displayName: Build pydevd binaries
inputs:
filepath: $(Build.SourcesDirectory)/debugpy/$(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)/debugpy/$(PYDEVD_ATTACH_TO_PROCESS)
Contents: |
*.so
# Build pydevd binaries
- task: Bash@3
displayName: Build pydevd binaries
inputs:
filepath: $(Build.SourcesDirectory)/debugpy/$(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)\debugpy\$(PYDEVD_ATTACH_TO_PROCESS)
Contents: |
*.exe
*.dll
*.pdb
# Build pydevd binaries
- task: BatchScript@1
displayName: Build pydevd binaries
inputs:
filename: $(Build.SourcesDirectory)\debugpy\$(PYDEVD_ATTACH_TO_PROCESS)\windows\compile_windows.bat
workingFolder: $(Build.SourcesDirectory)\debugpy\$(PYDEVD_ATTACH_TO_PROCESS)\windows

- template: "templates/run_tests.yml"

0 comments on commit 8f2aed1

Please sign in to comment.