GitLab

Using Git submodules with GitLab CI

Set relative submodule urls:

1
2
3
[submodule "project"]
  path = project
  url = ../../group/project.git

Update submodules before the build:

1
2
3
before_script:
  - git submodule sync --recursive
  - git submodule update --init --recursive

https://docs.gitlab.com/ce/ci/git_submodules.html