Unify Linux and Windows
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Kayla Ngan · committed by Kayla Ngan · parent e4974c7 · Browse files · 4 files·+54 added−71 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+54 added−71 removed
- other:+54 added−71 removed
Provenance
- Commit
086655e- Tree
daec57a- Author
Kayla Ngan <kangan@microsoft.com>- Committer
Kayla Ngan <kangan@microsoft.com>- Parent
e4974c7
4 files changed+54 added−71 removed
deleted:_azure-pipelines/template-linux.yml-33 removed
123456789101112131415161718192021222324252627282930313233jobs:- 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) deleted:_azure-pipelines/template-windows.yml-36 removed
123456789101112131415161718192021222324252627282930313233343536jobs:- 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'
added:_azure-pipelines/template.yml+46 added
12345678910111213141516171819202122232425262728293031323334353637383940414243444546jobs:- 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'modified:azure-pipelines.yml+8 added-2 removed
1223456478910jobs:- 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-win2016No newline at end of file