-
-
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.
Signed-off-by: Dan Ryan <dan@danryan.co> Fix windows testing Signed-off-by: Dan Ryan <dan@danryan.co> Update runner Signed-off-by: Dan Ryan <dan@danryan.co> Fix powershell script Signed-off-by: Dan Ryan <dan@danryan.co> Fix git ssl issues Signed-off-by: Dan Ryan <dan@danryan.co> Fix test name Signed-off-by: Dan Ryan <dan@danryan.co> Update test publication Signed-off-by: Dan Ryan <dan@danryan.co> Only run py36 py37 and py27 for testing Signed-off-by: Dan Ryan <dan@danryan.co> Enable linux builds Signed-off-by: Dan Ryan <dan@danryan.co> triple parallel Signed-off-by: Dan Ryan <dan@danryan.co> Update linux tests Signed-off-by: Dan Ryan <dan@danryan.co> Make sure home directory exists Signed-off-by: Dan Ryan <dan@danryan.co> Use pipenv to run tests Signed-off-by: Dan Ryan <dan@danryan.co> add vendoring script to linux build scripts Signed-off-by: Dan Ryan <dan@danryan.co> fix vendoring test Signed-off-by: Dan Ryan <dan@danryan.co> Lets try it this way Signed-off-by: Dan Ryan <dan@danryan.co> Syntax issue Signed-off-by: Dan Ryan <dan@danryan.co> Prune vsts-ci folder from manifest Signed-off-by: Dan Ryan <dan@danryan.co> Separate manifest step from vendoring Signed-off-by: Dan Ryan <dan@danryan.co> Update vsts vendoring script Signed-off-by: Dan Ryan <dan@danryan.co> Syntax error.. Signed-off-by: Dan Ryan <dan@danryan.co> fix vendoring Signed-off-by: Dan Ryan <dan@danryan.co> gah wrong version spec! Signed-off-by: Dan Ryan <dan@danryan.co> fix vsts Signed-off-by: Dan Ryan <dan@danryan.co> test updates Signed-off-by: Dan Ryan <dan@danryan.co> VSTS Syntax error... Signed-off-by: Dan Ryan <dan@danryan.co> and fix windows runner Signed-off-by: Dan Ryan <dan@danryan.co> maybe... Signed-off-by: Dan Ryan <dan@danryan.co> does this one work? Signed-off-by: Dan Ryan <dan@danryan.co> how about now Signed-off-by: Dan Ryan <dan@danryan.co> fix manifest Signed-off-by: Dan Ryan <dan@danryan.co> hmm now windows fails? Signed-off-by: Dan Ryan <dan@danryan.co> hmmmm... Signed-off-by: Dan Ryan <dan@danryan.co> Conditonal testing uses its own special phase Signed-off-by: Dan Ryan <dan@danryan.co>
- Loading branch information
1 parent
30cbfcf
commit a6fb4a7
Showing
9 changed files
with
128 additions
and
42 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,8 @@ | ||
phases: | ||
- template: phases/test.yml | ||
parameters: | ||
queue: Hosted Linux Preview | ||
|
||
- template: phases/run-vendor-scripts.yml | ||
parameters: | ||
queue: Hosted Linux Preview |
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,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: | ||
queue: | ||
|
||
phases: | ||
- phase: Vendor_Scripts | ||
displayName: Test Vendor Scripts | ||
|
||
queue: | ||
name: ${{ parameters.queue }} | ||
parallel: 4 | ||
matrix: | ||
${{ if eq(parameters.queue, 'Hosted VS2017') }}: | ||
# TODO remove once Hosted VS2017 has Python 3.7 | ||
Python37: | ||
python.version: '>= 3.7.0-b2' | ||
python.architecture: x64 | ||
${{ if ne(parameters.queue, 'Hosted VS2017' )}}: | ||
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
steps: | ||
- script: | | ||
virtualenv D:\.venv | ||
D:\.venv\Scripts\activate.bat && D:\.venv\Scripts\pip.exe install -e . && D:\.venv\Scripts\pipenv install --dev | ||
D:\.venv\Scripts\activate.bat && echo D:\.venv\Scripts\pipenv --venv && echo D:\.venv\Scripts\pipenv --py && echo D:\.venv\Scripts\pipenv run python --version | ||
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
steps: | ||
- powershell: | | ||
# Fix Git SSL errors | ||
pip install certifi tox | ||
pip install certifi | ||
python -m certifi > 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 | ||
$env:TEMP = "T:\" | ||
$env:TMP = "T:\" | ||
D:\.venv\Scripts\activate.ps1 && D:\.venv\Scripts\pipenv run pytest -n 4 --ignore=pipenv\patched --ignore=pipenv\vendor --junitxml=test-results.xml tests | ||
displayName: Tox run integration tests | ||
D:\.venv\Scripts\pipenv run pytest -n 4 --ignore=pipenv\patched --ignore=pipenv\vendor --junitxml=test-results.xml tests | ||
displayName: Run integration tests | ||
|
||
- task: PublishTestResults@2 | ||
displayName: Publish Test Results | ||
inputs: | ||
testResultsFiles: junit/*.xml | ||
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
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