summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vsts-ci.yml53
-rw-r--r--CONTRIBUTORS1
-rw-r--r--changelog/955.misc.rst1
3 files changed, 31 insertions, 24 deletions
diff --git a/.vsts-ci.yml b/.vsts-ci.yml
index 1dcb41b7..9b3aeab5 100644
--- a/.vsts-ci.yml
+++ b/.vsts-ci.yml
@@ -6,10 +6,10 @@ trigger:
- master
- refs/tags/*
-phases:
-- phase: lint
- queue:
- name: 'Hosted Linux Preview'
+jobs:
+- job: lint
+ pool:
+ vmImage: 'Ubuntu 16.04'
steps:
- task: UsePythonVersion@0
@@ -25,10 +25,11 @@ phases:
-- phase: docs
- queue:
- name: 'Hosted Linux Preview'
- parallel: 2
+- job: docs
+ pool:
+ vmImage: 'Ubuntu 16.04'
+ strategy:
+ maxParallel: 2
matrix:
readthedocs:
toxenv: 'docs'
@@ -47,10 +48,11 @@ phases:
- script: 'tox -e $(toxenv)'
displayName: run tox
-- phase: linux
- queue:
- name: 'Hosted Linux Preview'
- parallel: 4
+- job: linux
+ pool:
+ vmImage: 'Ubuntu 16.04'
+ strategy:
+ maxParallel: 4
matrix:
python27:
python.version: '2.7'
@@ -101,10 +103,11 @@ phases:
- script: 'python -m tox -e codecov -- -t $(CODECOV_TOKEN) --required -n "$(agent.os)-$(python.version)" --build "$(Build.DefinitionName)" --env OS=$(agent.os) python=$(python.version)'
displayName: upload codecov
-- phase: windows
- queue:
- name: 'Hosted VS2017'
- parallel: 4
+- job: windows
+ pool:
+ vmImage: 'vs2017-win2016'
+ strategy:
+ maxParallel: 4
matrix:
python27:
python.version: '2.7'
@@ -152,10 +155,11 @@ phases:
- script: 'python -m tox -e codecov -- -t $(CODECOV_TOKEN) --required -n "$(agent.os)-$(python.version)" --build "$(Build.DefinitionName)" --env OS=$(agent.os) python=$(python.version)'
displayName: upload codecov
-- phase: macOS
- queue:
- name: 'Hosted macOS Preview'
- parallel: 1
+- job: macOS
+ pool:
+ vmImage: 'macOS 10.13'
+ strategy:
+ maxParallel: 1
matrix:
python:
toxenv: 'py3'
@@ -190,7 +194,7 @@ phases:
- script: 'python3 -m tox -e codecov -- -t $(CODECOV_TOKEN) --required -n "$(agent.os)-python3" --build "$(Build.DefinitionName)" --env OS=$(agent.os) python=3'
displayName: upload codecov
-- phase: publish
+- job: publish
dependsOn:
- macOs
- linux
@@ -198,9 +202,10 @@ phases:
- lint
- docs
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
- queue:
- name: 'Hosted Linux Preview'
- parallel: 1
+ pool:
+ vmImage: 'Ubuntu 16.04'
+ strategy:
+ maxParallel: 1
matrix:
python37:
python.version: '3.7'
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index ccf2a0c5..7799e5dc 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -16,6 +16,7 @@ Chris Jerdonek
Chris Rose
Clark Boylan
Cyril Roelandt
+David Staheli
Ederag
Eli Collins
Eugene Yunak
diff --git a/changelog/955.misc.rst b/changelog/955.misc.rst
new file mode 100644
index 00000000..6d6edcc5
--- /dev/null
+++ b/changelog/955.misc.rst
@@ -0,0 +1 @@
+Updated the VSTS build YAML to use the latest jobs and pools syntax - by :user:`davidstaheli`