Python 3 POCL:
    script:
    - export PY_EXE=python3
    - export PYOPENCL_TEST=portable:pthread
    - export EXTRA_INSTALL="pybind11 numpy mako matplotlib"
    - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
    - ". ./build-and-test-py-project.sh"
    tags:
    - python3
    - pocl
    except:
    - tags
    artifacts:
        reports:
            junit: test/pytest.xml

Python 3 POCL Titan V:
    script:
    - export PYOPENCL_TEST=portable:titan
    - CONDA_ENVIRONMENT=.test-conda-env-py3.yml
    - export MPLBACKEND=Agg
    - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project-within-miniconda.sh
    - ". ./build-and-test-py-project-within-miniconda.sh"
    tags:
    - nvidia-titan-v
    except:
    - tags
    artifacts:
        reports:
            junit: test/pytest.xml

Python 3 POCL Titan X:
    script:
    - export PYOPENCL_TEST=portable:titan
    - CONDA_ENVIRONMENT=.test-conda-env-py3.yml
    - export MPLBACKEND=Agg
    - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project-within-miniconda.sh
    - ". ./build-and-test-py-project-within-miniconda.sh"
    tags:
    - nvidia-titan-x
    except:
    - tags
    artifacts:
        reports:
            junit: test/pytest.xml

Python 3 POCL K40:
    script:
    - export PYOPENCL_TEST=portable:k40
    - CONDA_ENVIRONMENT=.test-conda-env-py3.yml
    - export MPLBACKEND=Agg
    - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project-within-miniconda.sh
    - ". ./build-and-test-py-project-within-miniconda.sh"
    tags:
    - nvidia-k40
    except:
    - tags
    artifacts:
        reports:
            junit: test/pytest.xml

Python 3 POCL Examples:
  script:
  - test -n "$SKIP_EXAMPLES" && exit
  - export PY_EXE=python3
  - export PYOPENCL_TEST=portable:pthread
  - export EXTRA_INSTALL="pybind11 numpy mako pyvisfile matplotlib"
  - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-py-project-and-run-examples.sh
  - ". ./build-py-project-and-run-examples.sh"
  tags:
  - python3
  - pocl
  except:
  - tags
  artifacts:
    reports:
      junit: test/pytest.xml

Pylint:
  script:
  - export PY_EXE=python3
  - EXTRA_INSTALL="pybind11 numpy mako matplotlib"
  - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-pylint.sh
  - ". ./prepare-and-run-pylint.sh boxtree test/test_*.py"
  tags:
  - python3
  except:
  - tags

Documentation:
    script:
    - EXTRA_INSTALL="pybind11 numpy mako"
    - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-docs.sh
    - ". ./build-docs.sh"
    tags:
    - python3

Flake8:
    script:
    - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-flake8.sh
    - ". ./prepare-and-run-flake8.sh boxtree test examples"
    tags:
    - python3
    except:
    - tags

Downstream:
  parallel:
    matrix:
    - DOWNSTREAM_PROJECT: [sumpy, pytential]
  tags:
  - large-node
  - "docker-runner"
  script: |
    curl -L -O https://tiker.net/ci-support-v0
    . ./ci-support-v0

    export PYTEST_ADDOPTS="-k 'not slowtest'"
    test_downstream "$DOWNSTREAM_PROJECT"
