# CI for services, check gitlab repo for python package CI
include:
  - project: "Gitlab/gitlab"
    ref: main
    file: "/ci-templates/research/versioning-build-test-release.gitlab-ci.yml"
  - project: "Gitlab/gitlab"
    ref: main
    file: "/ci-templates/research/docs.gitlab-ci.yml"

# set project variables here
variables:
  NEXUS_PROJECT_DIR: <ADD NEXUS DIR (research/red/etc)> # subfolder in Nexus docker-gin where your container will be stored
  IMAGENAME: $CI_PROJECT_NAME # if the project URL is gitlab.example.com/group-name/project-1, CI_PROJECT_NAME is project-1

###################
# INTEGRATION TESTS
trigger-integration-tests:
  extends: .integration-tests
  # ADD THE MODEL BUILD WHICH SHOULD TRIGGER THE INTEGRATION TESTS
  # needs:
  #   - job: docker-build::model_name
  #     artifacts: true
  rules:
    - when: never

#########
# RELEASE
release:
  extends: .release
  needs:
    - !reference [.needs-versioning, needs] # leave this line as is