Skip to content
.gitlab-ci.yml 3.61 KiB
Newer Older
# Environment variables
#
# * PYTEST_ADDOPTS is used to filter test runs. The default value is "-k-slowtest",
#   which skips the slow running tests.
# * SKIP_EXAMPLES, if non-empty, can be used to skip the examples job.

Python 2.7 POCL:
Andreas Klöckner's avatar
Andreas Klöckner committed
  script:
Andreas Klöckner's avatar
Andreas Klöckner committed
  - export PYOPENCL_TEST=portable
  - export PYTEST_ADDOPTS=${PYTEST_ADDOPTS:--k-slowtest}
  - export EXTRA_INSTALL="Cython pybind11 numpy scipy mako"
Andreas Klöckner's avatar
Andreas Klöckner committed
  - 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:
Andreas Klöckner's avatar
Andreas Klöckner committed
  - pocl
Andreas Klöckner's avatar
Andreas Klöckner committed
  except:
  - tags
  artifacts:
    reports:
      junit: test/pytest.xml
Python 3 POCL:
Andreas Klöckner's avatar
Andreas Klöckner committed
  script:
  - export PY_EXE=python3
Andreas Klöckner's avatar
Andreas Klöckner committed
  - export PYOPENCL_TEST=portable
  - export PYTEST_ADDOPTS=${PYTEST_ADDOPTS:--k-slowtest}
  - export EXTRA_INSTALL="Cython pybind11 numpy scipy mako"
Andreas Klöckner's avatar
Andreas Klöckner committed
  - 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:
Andreas Klöckner's avatar
Andreas Klöckner committed
  - pocl
Andreas Klöckner's avatar
Andreas Klöckner committed
  except:
  - tags
  artifacts:
    reports:
      junit: test/pytest.xml
Python 3 POCL Examples:
  - export PY_EXE=python3
  - export PYOPENCL_TEST=portable
  - export EXTRA_INSTALL="Cython pybind11 numpy mako pyvisfile matplotlib"
  - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-py-project-and-run-examples.sh
  - ". ./build-py-project-and-run-examples.sh"
  tags:
  - pocl
  - large-node
  except:
  - tags
  artifacts:
    reports:
      junit: test/pytest.xml
Python 3 Conda:
Andreas Klöckner's avatar
Andreas Klöckner committed
  script:
Matt Wala's avatar
Matt Wala committed
  - export SUMPY_FORCE_SYMBOLIC_BACKEND=symengine
  - export CONDA_ENVIRONMENT=.test-conda-env-py3.yml
  - export PYTEST_ADDOPTS=${PYTEST_ADDOPTS:--k-slowtest}
  - export REQUIREMENTS_TXT=.test-conda-env-py3-requirements.txt
Andreas Klöckner's avatar
Andreas Klöckner committed
  - 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"
  tags:
  - linux
Andreas Klöckner's avatar
Andreas Klöckner committed
  except:
  - tags

  artifacts:
    reports:
      junit: test/pytest.xml

Python 3 Conda Apple:
Matt Wala's avatar
Matt Wala committed
  script:
  - export LC_ALL=en_US.UTF-8
  - export LANG=en_US.UTF-8
  - export CONDA_ENVIRONMENT=.test-conda-env-py3-macos.yml
  - export PYTEST_ADDOPTS=${PYTEST_ADDOPTS:--k-slowtest}
  - export REQUIREMENTS_TXT=.test-conda-env-py3-requirements.txt
Matt Wala's avatar
Matt Wala committed
  - export CC=gcc
Matt Wala's avatar
Matt Wala committed
  - 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"
Matt Wala's avatar
Matt Wala committed
  tags:
  - apple
  except:
  - tags
Matt Wala's avatar
Matt Wala committed

  artifacts:
    reports:
      junit: test/pytest.xml
Matt Wala's avatar
Matt Wala committed

Andreas Klöckner's avatar
Andreas Klöckner committed
Documentation:
  script:
  - EXTRA_INSTALL="Cython pybind11 numpy mako"
Andreas Klöckner's avatar
Andreas Klöckner committed
  - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-docs.sh
  - ". ./build-docs.sh"
  tags:
Andreas Klöckner's avatar
Andreas Klöckner committed
  only:
  - master
Matt Wala's avatar
Matt Wala committed
Pylint:
  script:
Matt Wala's avatar
Matt Wala committed
  # Needed to avoid name shadowing issues when running from source directory.
  - PROJECT_INSTALL_FLAGS="--editable"
Matt Wala's avatar
Matt Wala committed
  - export PY_EXE=python3
Matt Wala's avatar
Matt Wala committed
  # Pin to numpy 1.15
  # See https://github.com/PyCQA/pylint/issues/2721
Matt Wala's avatar
Matt Wala committed
  - EXTRA_INSTALL="Cython pybind11 numpy==1.15 mako matplotlib"
Matt Wala's avatar
Matt Wala committed
  - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-pylint.sh
Matt Wala's avatar
Matt Wala committed
  - ". ./prepare-and-run-pylint.sh pytential test/test_*.py"
Matt Wala's avatar
Matt Wala committed
  tags:
  - python3
  except:
  - tags

Andreas Klöckner's avatar
Andreas Klöckner committed
Flake8:
  script:
  - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-flake8.sh
  - ". ./prepare-and-run-flake8.sh pytential test examples"
Andreas Klöckner's avatar
Andreas Klöckner committed
  tags:
Andreas Klöckner's avatar
Andreas Klöckner committed
  except:
  - tags