@@ -2,61 +2,51 @@ parameters:
2
2
testGroup : unit
3
3
4
4
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
29
29
30
30
# Lots of fun logic, for... running the correct tests.
31
31
- ${{ 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?"
33
33
env :
34
34
TEMP : " R:\\ Temp"
35
35
displayName : Run unit tests
36
36
37
37
- ${{ if in(parameters.testGroup, 'one', 'two') }} :
38
38
- 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
50
40
env:
51
41
${{ if eq(parameters.testGroup, 'one') }}:
52
42
SELECTOR: "not test_install"
53
43
${{ if eq(parameters.testGroup, 'two') }}:
54
44
SELECTOR: "test_install"
55
45
displayName: Run integration tests
56
46
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