Skip to content
Snippets Groups Projects
Select Git revision
  • d924aa8b03a5f4e10242d19f05e32d0e5bee8279
  • master default protected
  • 110-having-best_jmuon-returning-only-complete-tracks
  • ruff
  • offline_trk_fields
  • extend-km3buu-w2list
  • 84_read_DST
  • remove-gseagen
  • improve-docs
  • awkward2-support
  • 94-new-km3net-dataformat-release-v2-2-0-2
  • code-cleanup
  • 93-reading-summary-slices-and-extracting-the-rates-of-each-optical-module
  • summary-slice-extractor
  • add-summaryslice-docs
  • isbitset-for-ulonglong
  • 81-with-sliced-tracks-as-input-for-best-tracks-tool-does-seem-to-still-process-all-events
  • 79-suggestions-to-improve-documentation
  • 85-could-best_track-return-array-of-indices-for-whole-run
  • 82-add-aashower-fitinf-to-best-track-method
  • user-newly-defined-root-defs
  • v1.2.4
  • v1.2.3
  • v1.2.2
  • v1.2.0
  • v0.1.2
  • v1.1.0
  • v1.0.2
  • v1.0.1
  • v1.0.0
  • v0.29.2
  • v0.29.1
  • v0.29.0
  • v0.28.0
  • v0.27.3
  • v0.27.2
  • v0.27.1
  • v0.27.0
  • v0.26.1
  • v0.26.0
  • v0.25.2
41 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 3.02 KiB
    image: docker.km3net.de/base/python:3
    
    # Change pip's cache directory to be inside the project directory since we can
    # only cache local items.
    variables:
      PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
    
    cache:
      paths:
        - .cache/pip
      key: "$CI_COMMIT_REF_SLUG"
    
    stages:
      - test
      - coverage
      - doc
      - release
    
    .virtualenv_template: &virtualenv_definition |
      python -V
      python3 -m venv venv
      source venv/bin/activate
      pip install -U pip setuptools wheel
      hash -r
      pip freeze
      make install-dev
      pip freeze
    
    .junit_template: &junit_definition
        artifacts:
          reports:
            junit: "reports/junit*.xml"
    
    test-py3.6:
        image: docker.km3net.de/base/python:3.6
        stage: test
        script:
            - *virtualenv_definition
            - make test
        <<: *junit_definition
    
    test-py3.7:
        image: docker.km3net.de/base/python:3.7
        stage: test
        script:
            - *virtualenv_definition
            - make test
        <<: *junit_definition
    
    test-py3.8:
        image: docker.km3net.de/base/python:3.8
        stage: test
        script:
            - *virtualenv_definition
            - make test
        <<: *junit_definition
    
    code-style:
        image: docker.km3net.de/base/python:3.7
        stage: test
        script:
            - *virtualenv_definition
            - make black-check
        allow_failure: true
    
    coverage:
        image: docker.km3net.de/base/python:3.6
        stage: coverage
        script:
            - *virtualenv_definition