Skip to content
.gitlab-ci.yml 1.4 KiB
Newer Older
Pytest:
Andreas Klöckner's avatar
Andreas Klöckner committed
  script:
  - export EXTRA_INSTALL="numpy"
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
  except:
  - tags
  artifacts:
    reports:
      junit: test/pytest.xml
Examples:
  script: |
    EXTRA_INSTALL="numpy pymbolic"
    curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/ci-support.sh
    . ./ci-support.sh
    build_py_project_in_venv
    run_examples
  tags:
  - python3
  except:
  - tags

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 "$CI_PROJECT_NAME" test
  tags:
Andreas Klöckner's avatar
Andreas Klöckner committed
  except:
  - tags

Mypy:
  script:
  - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/prepare-and-run-mypy.sh
  - ". ./prepare-and-run-mypy.sh python3 mypy"
  tags:
  - python3
  except:
  - tags

Andreas Klöckner's avatar
Andreas Klöckner committed
Pylint:
  script:
  - EXTRA_INSTALL="pymbolic 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
  - . ./prepare-and-run-pylint.sh "$CI_PROJECT_NAME" test/test_*.py
Andreas Klöckner's avatar
Andreas Klöckner committed
  tags:
  except:
  - tags
Andreas Klöckner's avatar
Andreas Klöckner committed

Documentation:
  script:
  - EXTRA_INSTALL="numpy"
  - 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