forked from nvidia-isaac/nvblox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
42 lines (42 loc) · 1.24 KB
/
.gitlab-ci.yml
File metadata and controls
42 lines (42 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Docs image.
image:
# Currently we're manually pushing this image. It's not expected to change often though.
name: nvcr.io/nvstaging/isaac-amr/nvblox_docs:latest
# Required since the "bash" entrypoint specified in the dockerfile cause problems.
entrypoint: [""]
# Reusable snippet for building docs
.build_docs: &build_docs
script:
- cd docs && make html SPHINXOPTS="-W --keep-going -D todo_include_todos=0"
- make linkcheck
- mkdir -p /builds/nvblox/nvblox/public
- cp -r _build/html/* /builds/nvblox/nvblox/public
tags:
- docker
rules:
- changes:
- '**/docs/**'
- '.gitlab-ci.yml'
# PREMERGE:
# Build docs (but don't publish them)
# The docs will be available as an artifact under the job.
build-docs:
!!merge <<: *build_docs
artifacts:
expire_in: 30 days
paths:
- public
# POSTMERGE:
# Build and publish docs. Note that "pages" is a magic gitlab name that make the job publish
# html generated under /public
pages:
!!merge <<: *build_docs
rules:
- if: '$CI_COMMIT_BRANCH == "release_v0.0.8" && $CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_BRANCH == "release_v0.0.8"'
when: always
artifacts:
expire_in: never
paths:
- public