Skip to content
Snippets Groups Projects
Select Git revision
  • 2ae40016bc0a1dacaaa2edf028798cd3d36e2a7d
  • master default protected
  • development
  • feature_retromonographien_structure_and_ocr
  • v1.1
  • 1.0
6 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 1.19 KiB
    image: debian:stable-slim
    
    variables:
      EXTDPKG: extdpkg
    
    before_script:
          - if [[ -d $EXTDPKG ]]; then cp -r $EXTDPKG/* /var/cache/apt/; fi
          - apt update
          - apt install -y libxml2-utils help2man man gzip make dpkg p7zip tar dh_make
    
    cache:
      paths: 
         - "$EXTDPKG"
    
    stages:          # List of stages for jobs, and their order of execution
      - build
      - test
      - packaging  
    
    build-env-job:       # This job runs in the build stage, which runs first.
        stage: build
        timeout: 30m
        tags:
        - "docker"
          #    variables:
          # CI_DEBUG_TRACE: "true"
        script:
          - if [[ ! -d $EXTDPKG ]]; then mkdir -p "$EXTDPKG"; cp -r /var/cache/apt/* "$EXTDPKG"/; fi
          - echo "copied to cache"
    
    validate-job:   # This job runs in the test stage.
        stage: test    # It only starts when the job in the build stage completes successfully.
        timeout: 30m
        tags:
        - "docker"
        script:
            - for file in *.xml; do xmllint  --noout --schema sigprops.xsd $file; done
    
    debianize-job:
        stage: packaging
        timeout: 30min
        tags:
        - "docker"
        script:
          - ./debianize.sh
        artifacts:
          paths:
          - artifacts/*.{deb,rpm,sh,tar.gz}
          - ./*.{deb,rpm,sh,tar.gz}