-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Use bash on windows #27195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Use bash on windows #27195
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,49 +11,45 @@ jobs: | |
py36_np15: | ||
ENV_FILE: ci/deps/azure-windows-36.yaml | ||
CONDA_PY: "36" | ||
PATTERN: "not slow and not network" | ||
|
||
py37_np141: | ||
ENV_FILE: ci/deps/azure-windows-37.yaml | ||
CONDA_PY: "37" | ||
PATTERN: "not slow and not network" | ||
|
||
steps: | ||
- powershell: | | ||
Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" | ||
Write-Host "##vso[task.prependpath]$HOME/miniconda3/bin" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct this to miniconda dir which is $env:CONDA |
||
displayName: 'Add conda to PATH' | ||
- script: conda update -q -n base conda | ||
displayName: Update conda | ||
- script: | | ||
call activate | ||
displayName: 'Update conda' | ||
- bash: | | ||
conda env create -q --file ci\\deps\\azure-windows-$(CONDA_PY).yaml | ||
displayName: 'Create anaconda environment' | ||
- script: | | ||
call activate pandas-dev | ||
call conda list | ||
- bash: | | ||
source activate pandas-dev | ||
conda list | ||
ci\\incremental\\build.cmd | ||
displayName: 'Build' | ||
- script: | | ||
call activate pandas-dev | ||
pytest -m "not slow and not network" --junitxml=test-data.xml pandas -n 2 -r sxX --strict --durations=10 %* | ||
- bash: | | ||
source activate pandas-dev | ||
ci/run_tests.sh | ||
displayName: 'Test' | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFiles: 'test-data.xml' | ||
testRunTitle: 'Windows-$(CONDA_PY)' | ||
- powershell: | | ||
$junitXml = "test-data.xml" | ||
$(Get-Content $junitXml | Out-String) -match 'failures="(.*?)"' | ||
if ($matches[1] -eq 0) | ||
{ | ||
$(Get-Content "test-data.xml" | Out-String) -match 'failures="(.*?)"' | ||
if ($matches[1] -eq 0) { | ||
Write-Host "No test failures in test-data" | ||
} | ||
else | ||
{ | ||
# note that this will produce $LASTEXITCODE=1 | ||
Write-Error "$($matches[1]) tests failed" | ||
} else { | ||
Write-Error "$($matches[1]) tests failed" # will produce $LASTEXITCODE=1 | ||
} | ||
displayName: 'Check for test failures' | ||
- script: | | ||
- bash: | | ||
source activate pandas-dev | ||
python ci/print_skipped.py | ||
displayName: 'Print skipped tests' |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this related? If not, I think we should have it in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay agree - let me factor this out to a separate PR. This was part of the work to move the windows CI scripts to use bash. (FYI I'm away from my keyboard for a few weeks - but will work on this when I return)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you factor this out