-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fb3c37
commit d04b6b2
Showing
11 changed files
with
253 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
jobs: | ||
- job: | ||
displayName: Docs | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.7' | ||
|
||
- template: steps/install-dependencies.yml | ||
|
||
- bash: tox -e docs | ||
displayName: Build docs | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact: docs' | ||
inputs: | ||
pathToPublish: docs/build | ||
artifactName: docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: Use Python $(python.version) | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
architecture: '$(python.architecture)' | ||
|
||
- template: ../steps/install-dependencies.yml | ||
|
||
- bash: | | ||
export GIT_SSL_CAINFO=$(python -m certifi) | ||
export LANG=C.UTF-8 | ||
python -m pip install check-manifest | ||
check-manifest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: Use Python $(python.version) | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
architecture: '$(python.architecture)' | ||
|
||
- template: ../steps/install-dependencies.yml | ||
|
||
- template: ../steps/create-virtualenv.yml | ||
|
||
- template: ../steps/run-tests.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: Use Python $(python.version) | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
architecture: '$(python.architecture)' | ||
|
||
- template: ../steps/install-dependencies.yml | ||
|
||
- bash: | | ||
mkdir -p "$AGENT_HOMEDIRECTORY/.virtualenvs" | ||
mkdir -p "$WORKON_HOME" | ||
pip install certifi | ||
export GIT_SSL_CAINFO="$(python -m certifi)" | ||
export LANG="C.UTF-8" | ||
export PIP_PROCESS_DEPENDENCY_LINKS="1" | ||
echo "Path $PATH" | ||
echo "Installing Pipenv…" | ||
pip install -e "$(pwd)" --upgrade | ||
pipenv install --deploy --dev | ||
echo pipenv --venv && echo pipenv --py && echo pipenv run python --version | ||
displayName: Make Virtualenv | ||
|
||
- script: | | ||
# Fix Git SSL errors | ||
export GIT_SSL_CAINFO="$(python -m certifi)" | ||
export LANG="C.UTF-8" | ||
export PIP_PROCESS_DEPENDENCY_LINKS="1" | ||
pipenv run pytest --junitxml=test-results.xml | ||
displayName: Run integration tests | ||
|
||
- task: PublishTestResults@2 | ||
displayName: Publish Test Results | ||
inputs: | ||
testResultsFiles: '**/test-results.xml' | ||
testRunTitle: 'Python $(python.version)' | ||
condition: succeededOrFailed() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
parameters: | ||
vmImage: | ||
|
||
jobs: | ||
- job: Vendor_Scripts | ||
displayName: Test Vendor Scripts | ||
pool: | ||
vmImage: ${{ parameters.vmImage }} | ||
strategy: | ||
maxParallel: 4 | ||
matrix: | ||
${{ if eq(parameters.vmImage, 'vs2017-win2016') }}: | ||
# TODO remove once vs2017-win2016 has Python 3.7 | ||
Python37: | ||
python.version: '>= 3.7.0-b2' | ||
python.architecture: x64 | ||
${{ if ne(parameters.vmImage, 'vs2017-win2016' )}}: | ||
Python37: | ||
python.version: '>= 3.7' | ||
python.architecture: x64 | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: Use Python $(python.version) | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
architecture: '$(python.architecture)' | ||
|
||
- template: ../steps/install-dependencies.yml | ||
|
||
- bash: | | ||
mkdir -p "$AGENT_HOMEDIRECTORY/.virtualenvs" | ||
mkdir -p "$WORKON_HOME" | ||
pip install certifi | ||
export GIT_SSL_CAINFO=$(python -m certifi) | ||
export LANG=C.UTF-8 | ||
python -m pip install --upgrade invoke requests parver | ||
python -m invoke vendoring.update | ||
- template: ./run-manifest-check.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
parameters: | ||
vmImage: | ||
|
||
jobs: | ||
- job: Test_Primary | ||
displayName: Test Primary | ||
pool: | ||
vmImage: ${{ parameters.vmImage }} | ||
strategy: | ||
maxParallel: 4 | ||
matrix: | ||
Python27: | ||
python.version: '2.7' | ||
python.architecture: x64 | ||
${{ if eq(parameters.vmImage, 'vs2017-win2016') }}: | ||
# TODO remove once vs2017-win2016 has Python 3.7 | ||
Python37: | ||
python.version: '>= 3.7.0-b2' | ||
python.architecture: x64 | ||
${{ if ne(parameters.vmImage, 'vs2017-win2016' )}}: | ||
Python37: | ||
python.version: '>= 3.7' | ||
python.architecture: x64 | ||
steps: | ||
- ${{ if eq(parameters.vmImage, 'vs2017-win2016') }}: | ||
- template: ./run-tests-windows.yml | ||
|
||
- ${{ if ne(parameters.vmImage, 'vs2017-win2016') }}: | ||
- template: ./run-tests.yml | ||
|
||
- job: Test_Secondary | ||
displayName: Test python3.6 | ||
# 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: | ||
maxParallel: 4 | ||
matrix: | ||
Python36: | ||
python.version: '3.6' | ||
python.architecture: x64 | ||
steps: | ||
- ${{ if eq(parameters.vmImage, 'vs2017-win2016') }}: | ||
- template: ./run-tests-windows.yml | ||
|
||
- ${{ if ne(parameters.vmImage, 'vs2017-win2016') }}: | ||
- template: ./run-tests.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Pipenv Build Rules | ||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
exclude: | ||
- docs/* | ||
- news/* | ||
- README.md | ||
- pipenv/*.txt | ||
- CHANGELOG.rst | ||
- CONTRIBUTING.md | ||
- CODE_OF_CONDUCT.md | ||
- .gitignore | ||
- .gitattributes | ||
- .editorconfig | ||
|
||
jobs: | ||
- template: jobs/test.yml | ||
parameters: | ||
vmImage: ubuntu-16.04 | ||
|
||
- template: jobs/run-vendor-scripts.yml | ||
parameters: | ||
vmImage: ubuntu-16.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
steps: | ||
- script: | | ||
virtualenv D:\.venv | ||
D:\.venv\Scripts\pip.exe install -e . && D:\.venv\Scripts\pipenv install --dev | ||
echo D:\.venv\Scripts\pipenv --venv && echo D:\.venv\Scripts\pipenv --py && echo D:\.venv\Scripts\pipenv run python --version | ||
displayName: Make Virtualenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
steps: | ||
- script: 'python -m pip install --upgrade pip && python -m pip install -e .' | ||
displayName: Upgrade Pip & Install Pipenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
steps: | ||
- powershell: | | ||
# Fix Git SSL errors | ||
pip install certifi | ||
python -m certifi > cacert.txt | ||
Write-Host "##vso[task.setvariable variable=GIT_SSL_CAINFO]$(Get-Content cacert.txt)" | ||
$env:GIT_SSL_CAINFO="$(Get-Content cacert.txt)" | ||
# Shorten paths to get under MAX_PATH or else integration tests will fail | ||
# https://bugs.python.org/issue18199 | ||
subst T: "$env:TEMP" | ||
Write-Host "##vso[task.setvariable variable=TEMP]T:\" | ||
$env:TEMP='T:\' | ||
Write-Host "##vso[task.setvariable variable=TMP]T:\" | ||
$env:TEMP='T:\' | ||
D:\.venv\Scripts\pipenv run pytest -ra --ignore=pipenv\patched --ignore=pipenv\vendor --junitxml=test-results.xml tests | ||
displayName: Run integration tests | ||
|
||
- task: PublishTestResults@2 | ||
displayName: Publish Test Results | ||
inputs: | ||
testResultsFiles: '**/test-results.xml' | ||
testRunTitle: 'Python $(python.version)' | ||
condition: succeededOrFailed() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Pipenv Build Rules | ||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
exclude: | ||
- docs/* | ||
- news/* | ||
- README.md | ||
- pipenv/*.txt | ||
- CHANGELOG.rst | ||
- CONTRIBUTING.md | ||
- CODE_OF_CONDUCT.md | ||
- .gitignore | ||
- .gitattributes | ||
- .editorconfig | ||
|
||
jobs: | ||
- template: jobs/test.yml | ||
parameters: | ||
vmImage: vs2017-win2016 |