.gitlab-ci.yml 1 KB
Newer Older
canterburym's avatar
canterburym committed
workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
    - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
      when: never
    - if: $CI_COMMIT_BRANCH

canterburym's avatar
canterburym committed
stages:
  - check
canterburym's avatar
canterburym committed
  - build
canterburym's avatar
canterburym committed

process_asn:
  image: "mcanterb/asn1test:latest"
  stage: check
  interruptible: true
canterburym's avatar
canterburym committed
  script:
    - python3 testing/asn_process.py

process_xsd:
  image: "mcanterb/xsdtest:latest"
  stage: check
  interruptible: true
  script:
    - python3 testing/xsd_process.py

canterburym's avatar
canterburym committed
generate_artefacts:
  image: "forge.etsi.org:5050/li/trial/changemarks"
  stage: build
  interruptible: true
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
  script:
    - echo $CI_PROJECT_ID
    - echo $CI_PROJECT_NAME
    - echo $CI_PROJECT_PATH
    - echo $CI_PIPELINE_SOURCE
    - echo $CI_OPEN_MERGE_REQUESTS
    - echo $CI_MERGE_REQUEST_IID
    - forgelib-changedocs -v https://$CI_SERVER_HOST $CI_PROJECT_ID $CI_PROJECT_PATH $CI_MERGE_REQUEST_IID
  artifacts:
    untracked: true
    paths:
      - "*.docx"
    expire_in: 30 days