Skip to content
.gitlab-ci.yml 3.57 KiB
Newer Older
    - 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
    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:
    - 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"
    - 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 MPI:
    script:
    - export PY_EXE=python3
    - export PYOPENCL_TEST=portable
    - export EXTRA_INSTALL="numpy mako mpi4py pybind11"
    - export PYTEST_ADDOPTS="-k mpi --capture=no"
    - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh
    - ". ./build-and-test-py-project.sh"
    tags:
    - python3
    - pocl
    except:
    - tags

Hao Gao's avatar
Hao Gao committed
Python 3 POCL Examples:
Hao Gao's avatar
Hao Gao committed
  - test -n "$SKIP_EXAMPLES" && exit
  - export PY_EXE=python3
  - export PYOPENCL_TEST=portable:pthread
Hao Gao's avatar
Hao Gao committed
  - 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:
  - pocl
  except:
  - tags
  artifacts:
    reports:
      junit: test/pytest.xml
Matt Wala's avatar
Matt Wala committed
Pylint:
  script:
Matt Wala's avatar
Matt Wala committed
  - export PY_EXE=python3
  - EXTRA_INSTALL="pybind11 numpy mako matplotlib mpi4py"
  - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-pylint.sh
Matt Wala's avatar
Matt Wala committed
  - ". ./prepare-and-run-pylint.sh boxtree test/test_*.py"
  tags:
Matt Wala's avatar
Matt Wala committed
  - python3
Matt Wala's avatar
Matt Wala committed
  except:
  - tags
Documentation:
    - EXTRA_INSTALL="pybind11 numpy mako mpi4py"
    - curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-docs.sh
    - ". ./build-docs.sh"
    tags:
Andreas Klöckner's avatar
Andreas Klöckner committed

Flake8:
    - 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"
    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"