Skip to content

Commit e2f902b

Browse files
committed
AP: Time for full on drama mode
1 parent e966b4f commit e2f902b

File tree

1 file changed

+32
-42
lines changed

1 file changed

+32
-42
lines changed

.azure-pipelines/steps/run-tests-windows.yml

Lines changed: 32 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,51 @@ parameters:
22
testGroup: unit
33

44
steps:
5-
- task: UsePythonVersion@0
6-
displayName: Use Python $(python.version)
7-
inputs:
8-
versionSpec: '$(python.version)'
9-
architecture: '$(python.architecture)'
10-
11-
- task: PowerShell@2
12-
inputs:
13-
filePath: .azure-pipelines/scripts/New-RAMDisk.ps1
14-
arguments: "-Drive R -Size 1GB"
15-
displayName: Setup RAMDisk
16-
17-
- powershell: |
18-
mkdir R:\Temp
19-
$acl = Get-Acl "R:\Temp"
20-
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule(
21-
"Everyone", "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow"
22-
)
23-
$acl.AddAccessRule($rule)
24-
Set-Acl "R:\Temp" $acl
25-
displayName: Set RAMDisk Permissions
26-
27-
- bash: pip install --upgrade 'virtualenv<20' setuptools tox
28-
displayName: Install Tox
5+
# - task: UsePythonVersion@0
6+
# displayName: Use Python $(python.version)
7+
# inputs:
8+
# versionSpec: '$(python.version)'
9+
# architecture: '$(python.architecture)'
10+
11+
# - task: PowerShell@2
12+
# inputs:
13+
# filePath: .azure-pipelines/scripts/New-RAMDisk.ps1
14+
# arguments: "-Drive R -Size 1GB"
15+
# displayName: Setup RAMDisk
16+
17+
# - powershell: |
18+
# mkdir R:\Temp
19+
# $acl = Get-Acl "R:\Temp"
20+
# $rule = New-Object System.Security.AccessControl.FileSystemAccessRule(
21+
# "Everyone", "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow"
22+
# )
23+
# $acl.AddAccessRule($rule)
24+
# Set-Acl "R:\Temp" $acl
25+
# displayName: Set RAMDisk Permissions
26+
27+
# - bash: pip install --upgrade 'virtualenv<20' setuptools tox
28+
# displayName: Install Tox
2929

3030
# Lots of fun logic, for... running the correct tests.
3131
- ${{ if in(parameters.testGroup, 'unit', 'one') }}:
32-
- script: tox -e py -- -m unit -n auto --junit-xml=junit/unit-test.xml
32+
- script: echo "unit tests?"
3333
env:
3434
TEMP: "R:\\Temp"
3535
displayName: Run unit tests
3636

3737
- ${{ if in(parameters.testGroup, 'one', 'two') }}:
3838
- powershell: |
39-
# Fix Git SSL errors
40-
pip install certifi
41-
python -m certifi > cacert.txt
42-
$env:GIT_SSL_CAINFO = $(Get-Content cacert.txt)
43-
44-
# Shorten paths to get under MAX_PATH or else integration tests will fail
45-
# https://bugs.python.org/issue18199
46-
$env:TEMP = "R:\Temp"
47-
48-
pip install tox
49-
tox -e py -- -k $env:SELECTOR -m integration -n auto --duration=5 --junit-xml=junit/integration-test.xml
39+
python -m "import sys; print(sys.argv)" $env:SELECTOR
5040
env:
5141
${{ if eq(parameters.testGroup, 'one') }}:
5242
SELECTOR: "not test_install"
5343
${{ if eq(parameters.testGroup, 'two') }}:
5444
SELECTOR: "test_install"
5545
displayName: Run integration tests
5646
57-
- task: PublishTestResults@2
58-
displayName: Publish Test Results
59-
inputs:
60-
testResultsFiles: junit/*.xml
61-
testRunTitle: 'Python $(python.version)'
62-
condition: succeededOrFailed()
47+
# - task: PublishTestResults@2
48+
# displayName: Publish Test Results
49+
# inputs:
50+
# testResultsFiles: junit/*.xml
51+
# testRunTitle: 'Python $(python.version)'
52+
# condition: succeededOrFailed()

0 commit comments

Comments
 (0)