Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Reference manuals
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NEMO Workspace
Documentation
Reference manuals
Commits
c9374fe5
Commit
c9374fe5
authored
5 months ago
by
Guillaume Samson
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "CI pipeline improvements"
parent
99b1c24e
No related branches found
Branches containing commit
No related tags found
1 merge request
!24
Resolve "CI pipeline improvements"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+66
-18
66 additions, 18 deletions
.gitlab-ci.yml
with
66 additions
and
18 deletions
.gitlab-ci.yml
+
66
−
18
View file @
c9374fe5
# docker packages
image
:
registry.gitlab.com/islandoftex/images/texlive:TL2021-historic
workflow
:
# avoid to trigger pipeline for each commit
# pipeline should be triggered using https://forge.nemo-ocean.eu/nemo/doc/manuals/-/pipelines/new
rules
:
-
if
:
$CI_PIPELINE_SOURCE == 'web'
-
if
:
$CI_PIPELINE_SOURCE == 'schedule'
-
if
:
$CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_COMMIT_TITLE =~ /(?i).*\[ci\].*/
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
MANUALS
:
description
:
"
Manual(s)
to
be
built"
value
:
"
all"
options
:
-
"
all"
-
"
NEMO"
-
"
SI3"
-
"
TOP"
# input version for release (available only when pipeline is run manually)
DRAFT_MODE
:
description
:
"
Enable/disable
latex
draft
mode
(faster
rendering
without
figures)"
value
:
"
yes"
options
:
-
"
yes"
-
"
no"
DEBUG_MODE
:
description
:
"
Print
or
not
latex
compilation
details
in
log
file
for
debugging"
value
:
"
no"
options
:
-
"
yes"
-
"
no"
VERSION
:
value
:
"
"
description
:
"
Set
version
release
number
for
manuals"
GIT_SUBMODULE_STRATEGY
:
recursive
before_script
:
-
if [[ ${DRAFT_MODE} == "no" ]]; then BUILD_OPT="-p"; fi
-
if [[ ${DEBUG_MODE} == "yes" ]]; then BASH_OPT="-x"; fi
# docker packages
image
:
registry.gitlab.com/islandoftex/images/texlive:TL2021-historic
NEMO manual
:
tags
:
-
docker
stage
:
build
#when: manual
rules
:
-
if
:
($MANUALS == "NEMO" || $MANUALS == "all")
script
:
-
version=${CI_COMMIT_REF_NAME}
-
if [ "x${VERSION}" != "x" ] ; then version=${VERSION} ; fi
-
bash -x manual_build.sh -r ${version} -p NEMO
-
bash ${BASH_OPT} manual_build.sh ${BUILD_OPT} -r ${VERSION:-CI_COMMIT_REF_NAME} NEMO
artifacts
:
paths
:
-
NEMO_manual.pdf
expire_in
:
15 mins
SI3 manual
:
tags
:
-
docker
stage
:
build
rules
:
-
if
:
($MANUALS == "SI3" || $MANUALS == "all")
script
:
-
bash ${BASH_OPT} manual_build.sh ${BUILD_OPT} -r ${VERSION:-CI_COMMIT_REF_NAME} SI3
artifacts
:
paths
:
-
SI3_manual.pdf
expire_in
:
15 mins
TOP manual
:
tags
:
-
docker
stage
:
build
#when: manual
rules
:
-
if
:
($MANUALS == "TOP" || $MANUALS == "all")
script
:
-
version=${CI_COMMIT_REF_NAME}
-
if [ "x${VERSION}" != "x" ] ; then version=${VERSION} ; fi
-
bash -x manual_build.sh -r ${version} -p TOP
-
bash ${BASH_OPT} manual_build.sh ${BUILD_OPT} -r ${VERSION:-CI_COMMIT_REF_NAME} TOP
artifacts
:
paths
:
-
TOP_manual.pdf
expire_in
:
15 mins
SI3 manual
:
# generic job (needs to be parallelized)
.build_manual
:
tags
:
-
docker
stage
:
build
#when: manual
script
:
-
version=${CI_COMMIT_REF_NAME}
-
if [ "x${VERSION}" != "x" ] ; then version=${VERSION} ; fi
-
bash -x manual_build.sh -r ${version} -p SI3
-
bash ${BASH_OPT} manual_build.sh ${BUILD_OPT} -r ${VERSION:-$CI_COMMIT_REF_NAME} ${MANUALS}
artifacts
:
paths
:
-
SI3
_manual.pdf
expire_in
:
15 mins
-
./*
_manual.pdf
expire_in
:
15 mins
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment