Skip to content

Upgrade Azure testing images and drop CI testing of Python 2 #279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 10 additions & 20 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ stages:
- job: code_style_check

pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-20.04
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have Azure actually removed ubuntu-latest? The docs seem to say ubuntu-latest still exists. If they really have removed ubuntu-latest now, then we will also have to update mbed-tools again.


steps:
- task: UsePythonVersion@0
Expand All @@ -32,26 +32,18 @@ stages:
strategy:
maxParallel: 10
matrix:
linux_python_2_7:
python.version: "2.7"
imageName: ubuntu-16.04
sendCoverage: "false"
linux_python_3_6:
python.version: "3.6"
imageName: ubuntu-16.04
imageName: ubuntu-20.04
sendCoverage: "false"
linux_python_3_7:
python.version: "3.7"
imageName: ubuntu-16.04
imageName: ubuntu-20.04
sendCoverage: "false"
linux_python_3_8:
python.version: "3.8"
imageName: ubuntu-16.04
imageName: ubuntu-20.04
sendCoverage: "true"
mac_python_2_7:
python.version: "2.7"
imageName: macOS-10.15
sendCoverage: "false"
mac_python_3_6:
python.version: "3.6"
imageName: macOS-10.15
Expand All @@ -64,21 +56,17 @@ stages:
python.version: "3.8"
imageName: macOS-10.15
sendCoverage: "false"
windows_python_2_7:
python.version: "2.7"
imageName: vs2017-win2016
sendCoverage: "false"
windows_python_3_6:
python.version: "3.6"
imageName: vs2017-win2016
imageName: windows-2019
sendCoverage: "false"
windows_python_3_7:
python.version: "3.7"
imageName: vs2017-win2016
imageName: windows-2019
sendCoverage: "false"
windows_python_3_8:
python.version: "3.8"
imageName: vs2017-win2016
imageName: windows-2019
sendCoverage: "false"

pool:
Expand Down Expand Up @@ -162,6 +150,8 @@ stages:
jobs:
- job: ChecksPassing
displayName: 'Checks Passing'
pool:
vmImage: ubuntu-20.04
# A dummy job is required due to a bug in Azure which runs the previous job if nothing is defined.
steps:
- bash: echo "All prerequisite stages have passed and the package should be suitable for release."
Expand All @@ -181,7 +171,7 @@ stages:
runOnce:
deploy:
pool:
vmImage: 'ubuntu-latest'
vmImage: 'ubuntu-20.04'
steps:
- checkout: self

Expand Down