diff --git a/.test-conda-env-py3.yml b/.test-conda-env-py3.yml new file mode 100644 index 0000000000000000000000000000000000000000..cd7ca6a9aaeec7b46358be6f9a88287d15f29c5e --- /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 1a033e2e0ad3c1acbd0cef5b12cf7905fa24782d..b012a2185b14361a68562f5fb50cfbf5b6041fbb 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 0000000000000000000000000000000000000000..ede72708b8142d8116f781554231a59713b08ff1 --- /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'