Skip to content
Snippets Groups Projects
Select Git revision
  • b6f08b9def17b96684190bc01e700ed33c3c6e0b
  • master default protected
  • fix_antimuons_visene
  • fix-mass-handling-and-lru
  • gibuu2025
  • use-tauola
  • remove-deps-version-fixes
  • muon-vis-ene-delta-rays
  • update-awkward
  • gibuu2021
  • gibuu2023-patch1
  • flux-convention
  • resample-writeout
  • fix_vis_ene_interface
  • fix-particle-states
  • 8-muon-propagation
  • flux_error
  • adjustable-zenith
  • fix_runnumber_output
  • additional_pythia_decays
  • julia-tools
  • v1.8.3
  • v1.8.2
  • v1.8.1
  • v1.8.0
  • v1.7.1
  • v1.7.0
  • v1.6.1
  • v1.6.0
  • v1.5.0
  • v1.4.2
  • v1.4.1
  • v1.4.0
  • v1.3.0
  • v1.2.0
  • v1.1.6
  • v1.0.8
  • v1.0.7
  • v1.1.5
  • v1.1.4
  • v1.0.6
41 results

Makefile

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