From 563d1ed30ea6ee4c99bcb29d7b8beeeb3818b60f Mon Sep 17 00:00:00 2001 From: Matti Picus Date: Thu, 22 Aug 2019 12:55:43 +0300 Subject: [PATCH 1/2] Set up CI with Azure Pipelines --- azure-pipelines.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..aa91291 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,19 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: +- script: echo Hello, world! + displayName: 'Run a one-line script' + +- script: | + echo Add other tasks to build, test, and deploy your project. + echo See https://aka.ms/yaml + displayName: 'Run a multi-line script' From 15a51f055c0f3f4999b8c1aaf9aa176d09891fa7 Mon Sep 17 00:00:00 2001 From: mattip Date: Thu, 22 Aug 2019 16:16:11 +0300 Subject: [PATCH 2/2] Add a matrix of configurations --- azure-pipelines.yml | 79 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 71 insertions(+), 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index aa91291..711b1dc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,14 +6,77 @@ trigger: - master +variables: + REPO_DIR: "numpy" + BUILD_COMMIT: "master" + TEST_DEPENDS: "pytest pytz" + PLAT: "x64" + +strategy: + matrix: + # linux64python3.5: + # imageName: "ubuntu-16.04" + # os: linux + # MB_PYTHON_VERSION: 3.5 + # linux32python3.5: + # imageName: "ubuntu-16.04" + # os: linux + # PLAT: i386 + # MB_PYTHON_VERSION: 3.5 + # linux64python3.6: + # imageName: "ubuntu-16.04" + # MB_PYTHON_VERSION: 3.6 + # linux32python3.6: + # imageName: "ubuntu-16.04" + # PLAT: i386 + # MB_PYTHON_VERSION: 3.6 + # linux64python3.7: + # imageName: "ubuntu-16.04" + # MB_PYTHON_VERSION: 3.7 + # linux32python3.7: + # imageName: "ubuntu-16.04" + # PLAT: i386 + # MB_PYTHON_VERSION: 3.7 + # osXpython3.5: + # imageName: "macOS-10.13" # could also use macos-10.14 + # MB_PYTHON_VERSION: 3.5 + # osXpython3.6: + # imageName: "macOS-10.13" # could also use macos-10.14 + # MB_PYTHON_VERSION: 3.6 + # osXpython3.7: + # imageName: "macOS-10.13" # could also use macos-10.14 + # MB_PYTHON_VERSION: 3.7 + win64python3.5: + imageName: "VS2017-Win2016" + MB_PYTHON_VERSION: "3.5" + win32python3.5: + imageName: "VS2017-Win2016" + PLAT: "x86" + MB_PYTHON_VERSION: "3.5" + win64python3.6: + imageName: "VS2017-Win2016" + MB_PYTHON_VERSION: "3.6" + win32python3.6: + imageName: "VS2017-Win2016" + PLAT: "x86" + MB_PYTHON_VERSION: "3.6" + win64python3.7: + imageName: "VS2017-Win2016" + MB_PYTHON_VERSION: "3.7" + win32python3.7: + imageName: "VS2017-Win2016" + PLAT: "x86" + MB_PYTHON_VERSION: "3.7" pool: - vmImage: 'ubuntu-latest' + # see https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted + vmImage: $(imageName) steps: -- script: echo Hello, world! - displayName: 'Run a one-line script' - -- script: | - echo Add other tasks to build, test, and deploy your project. - echo See https://aka.ms/yaml - displayName: 'Run a multi-line script' +- task: UsePythonVersion@0 + inputs: + versionSpec: '$(MB_PYTHON_VERSION)' + addToPath: true + # only valid on windows vmImages + architecture: '$(PLAT)' +- script: python -c"import sys; print(sys.version)" + displayName: 'Print python version'