From 5cd98446e5927f55e949267cc807cd18512623ea Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Fri, 30 Aug 2019 21:48:30 -0500 Subject: [PATCH] Add Azure Pipelines, attempt 1 --- .test-conda-env-py3.yml | 32 ++++++++++++++++++++ README.rst | 9 ++++-- azure-pipelines.yml | 66 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 105 insertions(+), 2 deletions(-) create mode 100644 .test-conda-env-py3.yml create mode 100644 azure-pipelines.yml diff --git a/.test-conda-env-py3.yml b/.test-conda-env-py3.yml new file mode 100644 index 00000000..cd7ca6a9 --- /dev/null +++ b/.test-conda-env-py3.yml @@ -0,0 +1,32 @@ +name: test-conda-env +channels: +- conda-forge +- defaults + +dependencies: +- python=3 +- git +- conda-forge::numpy +- pocl +- mako +- pyopencl +- islpy + +# Only needed to make pylint succeed +- matplotlib + +- pip +- pip: + - git+https://github.com/inducer/pymbolic + - git+https://github.com/inducer/loopy + + - git+https://gitlab.tiker.net/inducer/gmsh_interop.git + - git+https://gitlab.tiker.net/inducer/modepy.git + + # required by pytential, which is in turn needed for some tests + - git+https://gitlab.tiker.net/inducer/boxtree.git + - git+https://gitlab.tiker.net/inducer/sumpy.git + - git+https://gitlab.tiker.net/inducer/pytential.git + + # requires pymetis for tests for partition_mesh + - git+https://gitlab.tiker.net/inducer/pymetis.git diff --git a/README.rst b/README.rst index 1a033e2e..b012a218 100644 --- a/README.rst +++ b/README.rst @@ -2,9 +2,14 @@ meshmode: High-Order Meshes and Discontinuous Function Spaces ============================================================= .. image:: https://gitlab.tiker.net/inducer/meshmode/badges/master/pipeline.svg - :target: https://gitlab.tiker.net/inducer/meshmode/commits/master + :alt: Gitlab Build Status + :target: https://gitlab.tiker.net/inducer/meshmode/commits/master +.. image:: https://dev.azure.com/ak-spam/inducer/_apis/build/status/inducer.meshmode?branchName=master + :alt: Azure Build Status + :target: https://dev.azure.com/ak-spam/inducer/_build/latest?definitionId=14&branchName=master .. image:: https://badge.fury.io/py/meshmode.png - :target: http://pypi.python.org/pypi/meshmode + :alt: Python Package Index Release Page + :target: https://pypi.org/project/meshmode/ * `Source code on Github `_ * `Documentation `_ diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..ede72708 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,66 @@ +jobs: +- + job: 'Python2' + pool: + vmImage: 'ubuntu-latest' + + steps: + - + script: | + set -e + sed 's/python=3/python=2.7/' .test-conda-env-py3.yml > .test-conda-env-py2.yml + cat .test-conda-env-py2.yml + CONDA_ENVIRONMENT=.test-conda-env-py2.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' + - + task: PublishTestResults@2 + inputs: + testResultsFormat: 'JUnit' + testResultsFiles: 'test/pytest.xml' + +- + job: 'Python3' + pool: + vmImage: 'ubuntu-latest' + + steps: + - + 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' + + - + task: PublishTestResults@2 + inputs: + testResultsFormat: 'JUnit' + testResultsFiles: 'test/pytest.xml' + +- + job: 'Flake8' + pool: + vmImage: 'ubuntu-latest' + strategy: + matrix: + Python37: + python.version: '3.7' + + 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