From 1b48e169b5b1a51fc91bbd662ab312f1ac3ac888 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 29 Aug 2019 13:25:31 -0500 Subject: [PATCH] README tweaks and Azure pipeline attempt --- README.rst | 9 +++++++-- azure-pipelines.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 azure-pipelines.yml diff --git a/README.rst b/README.rst index 6e698391..c563e78b 100644 --- a/README.rst +++ b/README.rst @@ -2,9 +2,14 @@ PyOpenCL: Pythonic Access to OpenCL, with Arrays and Algorithms --------------------------------------------------------------- .. image:: https://gitlab.tiker.net/inducer/pyopencl/badges/master/pipeline.svg - :target: https://gitlab.tiker.net/inducer/pyopencl/commits/master + :alt: Gitlab Build Status + :target: https://gitlab.tiker.net/inducer/pyopencl/commits/master +.. image:: https://dev.azure.com/ak-spam/inducer/_apis/build/status/inducer.pyopencl?branchName=master + :alt: Azure Build Status + :target: https://dev.azure.com/ak-spam/inducer/_build/latest?definitionId=5&branchName=master .. image:: https://badge.fury.io/py/pyopencl.png - :target: http://pypi.python.org/pypi/pyopencl + :alt: Python Package Index Release Page + :target: https://pypi.org/project/pyopencl/ (Also: `Travis CI `_ to build binary wheels for releases, see `#264 `_) diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..786d51ff --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,43 @@ +jobs: +- + job: 'Pytest' + pool: + vmImage: 'ubuntu-16.04' # other options: 'macOS-10.13', 'vs2017-win2016' + + steps: + - + task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + + - + script: | + set -e + CONDA_ENVIRONMENT=.test-conda-env-py3.yml + curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project-within-miniconda.sh + ". ./build-and-test-py-project-within-miniconda.sh" + + displayName: 'Pytest Conda' + +- + job: 'Flake8' + pool: + vmImage: 'ubuntu-16.04' # other options: 'macOS-10.13', 'vs2017-win2016' + strategy: + matrix: + Python36: + python.version: '3.6' + + steps: + - + task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + + - + script: | + set -e + curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh + . ./prepare-and-run-flake8.sh pyopencl test + + displayName: 'Flake8' -- GitLab