summaryrefslogtreecommitdiff
path: root/.azure-pipelines
diff options
context:
space:
mode:
authorBrian Cristante <brcrista@microsoft.com>2018-10-01 08:24:40 -0400
committerBrian Cristante <brcrista@microsoft.com>2018-10-01 08:24:40 -0400
commitfe76e4f80e9d21bfd5cde46572189fd9a95c7a36 (patch)
tree4de16ae678c2e8886a2075561ff030ede4b22f9b /.azure-pipelines
parent7a612ee9d88d0736828ece7f238c7e70b4f9cc81 (diff)
downloadpip-fe76e4f80e9d21bfd5cde46572189fd9a95c7a36.tar.gz
Get rid of branching logic based on image name
Diffstat (limited to '.azure-pipelines')
-rw-r--r--.azure-pipelines/jobs/test-windows.yml65
-rw-r--r--.azure-pipelines/jobs/test.yml75
-rw-r--r--.azure-pipelines/steps/install-dependencies.yml2
-rw-r--r--.azure-pipelines/steps/run-tests.yml24
4 files changed, 93 insertions, 73 deletions
diff --git a/.azure-pipelines/jobs/test-windows.yml b/.azure-pipelines/jobs/test-windows.yml
new file mode 100644
index 000000000..52c782dae
--- /dev/null
+++ b/.azure-pipelines/jobs/test-windows.yml
@@ -0,0 +1,65 @@
+parameters:
+ vmImage:
+
+jobs:
+- job: Test_Primary
+ displayName: Test Primary
+
+ pool:
+ vmImage: ${{ parameters.vmImage }}
+ strategy:
+ matrix:
+ Python27:
+ python.version: '2.7'
+ python.architecture: x64
+ Python36:
+ python.version: '3.6'
+ python.architecture: x64
+ maxParallel: 2
+
+ steps:
+ - template: ../steps/run-tests-windows.yml
+ parameters:
+ runIntegrationTests: true
+
+- job: Test_Secondary
+ displayName: Test Secondary
+ # Don't run integration tests for these runs
+ # Run after Test_Primary so we don't devour time and jobs if tests are going to fail
+ dependsOn: Test_Primary
+
+ pool:
+ vmImage: ${{ parameters.vmImage }}
+ strategy:
+ matrix:
+ Python34:
+ python.version: '3.4'
+ python.architecture: x64
+ Python35:
+ python.version: '3.5'
+ python.architecture: x64
+ Python37:
+ python.version: '3.7'
+ python.architecture: x64
+ # This is for Windows, so test x86 builds
+ Python27-x86:
+ python.version: '2.7'
+ python.architecture: x86
+ Python34-x86:
+ python.version: '3.4'
+ python.architecture: x86
+ Python35-x86:
+ python.version: '3.5'
+ python.architecture: x86
+ Python36-x86:
+ python.version: '3.6'
+ python.architecture: x86
+ Python37-x86:
+ python.version: '3.7'
+ python.architecture: x86
+ maxParallel: 5
+
+ steps:
+ - template: ../steps/run-tests-windows.yml
+ parameters:
+ runIntegrationTests: false
diff --git a/.azure-pipelines/jobs/test.yml b/.azure-pipelines/jobs/test.yml
index 47a286c0e..8bd2192bb 100644
--- a/.azure-pipelines/jobs/test.yml
+++ b/.azure-pipelines/jobs/test.yml
@@ -2,8 +2,8 @@ parameters:
vmImage:
jobs:
-- job: Test_Primary
- displayName: Test Primary
+- job: Test
+ displayName: Test
pool:
vmImage: ${{ parameters.vmImage }}
@@ -12,62 +12,41 @@ jobs:
Python27:
python.version: '2.7'
python.architecture: x64
- Python36:
- python.version: '3.6'
- python.architecture: x64
- maxParallel: 2
-
- steps:
- - ${{ if eq(parameters.vmImage, 'vs2017-win2017') }}:
- - template: ../steps/run-tests-windows.yml
- parameters:
- runIntegrationTests: true
-
- - ${{ if ne(parameters.vmImage, 'vs2017-win2017') }}:
- - template: ../steps/run-tests.yml
-
-- job: Test_Secondary
- displayName: Test Secondary
- # Run after Test_Primary so we don't devour time and jobs if tests are going to fail
- dependsOn: Test_Primary
-
- pool:
- vmImage: ${{ parameters.vmImage }}
- strategy:
- matrix:
Python34:
python.version: '3.4'
python.architecture: x64
Python35:
python.version: '3.5'
python.architecture: x64
+ Python36:
+ python.version: '3.6'
+ python.architecture: x64
Python37:
python.version: '3.7'
python.architecture: x64
- # On Windows, test x86 builds
- ${{ if eq(parameters.vmImage, 'vs2017-win2017') }}:
- Python27-x86:
- python.version: '2.7'
- python.architecture: x86
- Python34-x86:
- python.version: '3.4'
- python.architecture: x86
- Python35-x86:
- python.version: '3.5'
- python.architecture: x86
- Python36-x86:
- python.version: '3.6'
- python.architecture: x86
- Python37-x86:
- python.version: '3.7'
- python.architecture: x86
maxParallel: 5
steps:
- - ${{ if eq(parameters.vmImage, 'vs2017-win2017') }}:
- - template: ../steps/run-tests-windows.yml
- parameters:
- runIntegrationTests: false
+ - task: UsePythonVersion@0
+ displayName: Use Python $(python.version)
+ inputs:
+ versionSpec: '$(python.version)'
+
+ - template: install-dependencies.yml
+
+ - script: tox -e py -- -m unit --junit-xml=junit/unit-test.xml
+ displayName: Tox run unit tests
+
+ # Run integration tests in two groups so we will fail faster if there is a failure in the first group
+ - script: tox -e py -- -m integration -n 4 --duration=5 -k "not test_install" --junit-xml=junit/integration-test-group0.xml
+ displayName: Tox run Group 0 integration tests
+
+ - script: tox -e py -- -m integration -n 4 --duration=5 -k "test_install" --junit-xml=junit/integration-test-group1.xml
+ displayName: Tox run Group 1 integration tests
- - ${{ if ne(parameters.vmImage, 'vs2017-win2017') }}:
- - template: ../steps/run-tests.yml
+ - task: PublishTestResults@2
+ displayName: Publish Test Results
+ inputs:
+ testResultsFiles: junit/*.xml
+ testRunTitle: 'Python $(python.version)'
+ condition: succeededOrFailed()
diff --git a/.azure-pipelines/steps/install-dependencies.yml b/.azure-pipelines/steps/install-dependencies.yml
index 8946a5568..22c15e9c9 100644
--- a/.azure-pipelines/steps/install-dependencies.yml
+++ b/.azure-pipelines/steps/install-dependencies.yml
@@ -1,3 +1,3 @@
steps:
- bash: pip install --upgrade setuptools tox
- displayName: Install dependencies \ No newline at end of file
+ displayName: Install Tox \ No newline at end of file
diff --git a/.azure-pipelines/steps/run-tests.yml b/.azure-pipelines/steps/run-tests.yml
deleted file mode 100644
index 588445b99..000000000
--- a/.azure-pipelines/steps/run-tests.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-steps:
-- task: UsePythonVersion@0
- displayName: Use Python $(python.version)
- inputs:
- versionSpec: '$(python.version)'
-
-- template: install-dependencies.yml
-
-- script: tox -e py -- -m unit --junit-xml=junit/unit-test.xml
- displayName: Tox run unit tests
-
-# Run integration tests in two groups so we will fail faster if there is a failure in the first group
-- script: tox -e py -- -m integration -n 4 --duration=5 -k "not test_install" --junit-xml=junit/integration-test-group0.xml
- displayName: Tox run Group 0 integration tests
-
-- script: tox -e py -- -m integration -n 4 --duration=5 -k "test_install" --junit-xml=junit/integration-test-group1.xml
- displayName: Tox run Group 1 integration tests
-
-- task: PublishTestResults@2
- displayName: Publish Test Results
- inputs:
- testResultsFiles: junit/*.xml
- testRunTitle: 'Python $(python.version)'
- condition: succeededOrFailed() \ No newline at end of file