Skip to content

Commit 47ac4b3

Browse files
alimcmaster1jreback
authored andcommitted
CI: Remove powershell scripts (Azure) (#30431)
1 parent 7a36c79 commit 47ac4b3

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

ci/azure/posix.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,13 @@ jobs:
6969
displayName: 'Build versions'
7070

7171
- task: PublishTestResults@2
72+
condition: succeededOrFailed()
7273
inputs:
74+
failTaskOnFailedTests: true
7375
testResultsFiles: 'test-data.xml'
7476
testRunTitle: ${{ format('{0}-$(CONDA_PY)', parameters.name) }}
7577
displayName: 'Publish test results'
7678

77-
- powershell: |
78-
$(Get-Content "test-data.xml" | Out-String) -match 'failures="(.*?)"'
79-
if ($matches[1] -eq 0) {
80-
Write-Host "No test failures in test-data"
81-
} else {
82-
Write-Error "$($matches[1]) tests failed" # will produce $LASTEXITCODE=1
83-
}
84-
displayName: 'Check for test failures'
85-
8679
- script: |
8780
source activate pandas-dev
8881
python ci/print_skipped.py

ci/azure/windows.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,34 @@ jobs:
2323
Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
2424
Write-Host "##vso[task.prependpath]$HOME/miniconda3/bin"
2525
displayName: 'Add conda to PATH'
26+
2627
- script: conda update -q -n base conda
2728
displayName: 'Update conda'
29+
2830
- bash: |
2931
conda env create -q --file ci\\deps\\azure-windows-$(CONDA_PY).yaml
3032
displayName: 'Create anaconda environment'
33+
3134
- bash: |
3235
source activate pandas-dev
3336
conda list
3437
python setup.py build_ext -q -i
3538
python -m pip install --no-build-isolation -e .
3639
displayName: 'Build'
40+
3741
- bash: |
3842
source activate pandas-dev
3943
ci/run_tests.sh
4044
displayName: 'Test'
45+
4146
- task: PublishTestResults@2
47+
condition: succeededOrFailed()
4248
inputs:
49+
failTaskOnFailedTests: true
4350
testResultsFiles: 'test-data.xml'
44-
testRunTitle: 'Windows-$(CONDA_PY)'
45-
- powershell: |
46-
$(Get-Content "test-data.xml" | Out-String) -match 'failures="(.*?)"'
47-
if ($matches[1] -eq 0) {
48-
Write-Host "No test failures in test-data"
49-
} else {
50-
Write-Error "$($matches[1]) tests failed" # will produce $LASTEXITCODE=1
51-
}
52-
displayName: 'Check for test failures'
51+
testRunTitle: ${{ format('{0}-$(CONDA_PY)', parameters.name) }}
52+
displayName: 'Publish test results'
53+
5354
- bash: |
5455
source activate pandas-dev
5556
python ci/print_skipped.py

0 commit comments

Comments
 (0)