mirror of
https://github.com/kennethreitz/requests3.git
synced 2026-06-05 23:10:16 +00:00
Unify Linux and Windows
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
jobs:
|
||||
- job: Linux
|
||||
pool:
|
||||
vmImage: 'Ubuntu-16.04'
|
||||
strategy:
|
||||
matrix:
|
||||
Python27:
|
||||
PYTHON_VERSION: '2.7'
|
||||
Python34:
|
||||
PYTHON_VERSION: '3.4'
|
||||
Python35:
|
||||
PYTHON_VERSION: '3.5'
|
||||
Python36:
|
||||
PYTHON_VERSION: '3.6'
|
||||
Python37:
|
||||
PYTHON_VERSION: '3.7'
|
||||
steps:
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
versionSpec: $(PYTHON_VERSION)
|
||||
displayName: 'Install Python'
|
||||
- script: |
|
||||
make
|
||||
make test-readme
|
||||
make ci
|
||||
- script: |
|
||||
pipenv run codecov
|
||||
displayName: 'Coverage'
|
||||
- task: PublishTestResults@2
|
||||
displayName: 'Publish test results'
|
||||
inputs:
|
||||
testResultsFiles: 'report.xml'
|
||||
testRunTitle: Python $(PYTHON_VERSION)
|
||||
@@ -1,36 +0,0 @@
|
||||
jobs:
|
||||
- job: Windows
|
||||
pool:
|
||||
vmImage: 'vs2017-win2016'
|
||||
strategy:
|
||||
matrix:
|
||||
Python27:
|
||||
PYTHON_VERSION: '2.7'
|
||||
Python34:
|
||||
PYTHON_VERSION: '3.4'
|
||||
Python35:
|
||||
PYTHON_VERSION: '3.5'
|
||||
Python36:
|
||||
PYTHON_VERSION: '3.6'
|
||||
Python37:
|
||||
PYTHON_VERSION: '3.7'
|
||||
steps:
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
versionSpec: $(PYTHON_VERSION)
|
||||
architecture: 'x64'
|
||||
displayName: 'Install Python'
|
||||
- script: |
|
||||
make init
|
||||
python -m pip install --upgrade pip wheel
|
||||
displayName: 'Ensure latest'
|
||||
- script: |
|
||||
make
|
||||
pipenv install -e .[socks] --skip-lock
|
||||
- script: |
|
||||
make coverage
|
||||
displayName: 'Test script'
|
||||
- script: |
|
||||
pipenv run codecov -f coverage.xml
|
||||
displayName: 'Coverage'
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
pool:
|
||||
vmImage: ${{ parameters.vmImage }}
|
||||
strategy:
|
||||
matrix:
|
||||
Python27:
|
||||
PYTHON_VERSION: '2.7'
|
||||
Python34:
|
||||
PYTHON_VERSION: '3.4'
|
||||
Python35:
|
||||
PYTHON_VERSION: '3.5'
|
||||
Python36:
|
||||
PYTHON_VERSION: '3.6'
|
||||
Python37:
|
||||
PYTHON_VERSION: '3.7'
|
||||
steps:
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
versionSpec: $(PYTHON_VERSION)
|
||||
architecture: 'x64'
|
||||
displayName: 'Install Python'
|
||||
- script: |
|
||||
make
|
||||
pipenv install -e .[socks] --skip-lock
|
||||
displayName: 'Set up'
|
||||
|
||||
- ${{ if eq(parameters.name, 'Linux') }}:
|
||||
- script: |
|
||||
make test-readme
|
||||
make ci
|
||||
displayName: 'Test and CI'
|
||||
- task: PublishTestResults@2
|
||||
displayName: 'Publish test results'
|
||||
inputs:
|
||||
testResultsFiles: 'report.xml'
|
||||
testRunTitle: Python $(PYTHON_VERSION)
|
||||
|
||||
- ${{ if eq(parameters.name, 'Windows') }}:
|
||||
- script: |
|
||||
make coverage
|
||||
displayName: 'Coverage'
|
||||
|
||||
- script: |
|
||||
pipenv run codecov -f coverage.xml
|
||||
displayName: 'Run codecov'
|
||||
+8
-2
@@ -1,4 +1,10 @@
|
||||
jobs:
|
||||
- template: _azure-pipelines/template-linux.yml
|
||||
- template: _azure-pipelines/template.yml
|
||||
parameters:
|
||||
name: Linux
|
||||
vmImage: Ubuntu-16.04
|
||||
|
||||
- template: _azure-pipelines/template-windows.yml
|
||||
- template: _azure-pipelines/template.yml
|
||||
parameters:
|
||||
name: Windows
|
||||
vmImage: vs2017-win2016
|
||||
Reference in New Issue
Block a user