Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
92
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
5a12a017
Commit
5a12a017
authored
1 week ago
by
Adam Wujek
Browse files
Options
Downloads
Patches
Plain Diff
.gitlab-ci.yml: add build job for docs
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
2131fca6
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+51
-3
51 additions, 3 deletions
.gitlab-ci.yml
with
51 additions
and
3 deletions
.gitlab-ci.yml
+
51
−
3
View file @
5a12a017
stages
:
stages
:
-
wrs_sw_compile
-
build
-
doc
job_wrs_compile
:
job_wrs_compile
:
stage
:
wrs_sw_compile
stage
:
build
tags
:
-
wrs_sw
script
:
script
:
-
apt update && apt upgrade -y && apt install -y git make build-essential m4 gettext bison flex texinfo libncurses-dev libncursesw5-dev bc python unzip wget cpio locales
-
apt update && apt upgrade -y && apt install -y git make build-essential m4 gettext bison flex texinfo libncurses-dev libncursesw5-dev bc python unzip wget cpio locales
-
locale-gen en_US.UTF-8
-
locale-gen en_US.UTF-8
...
@@ -15,7 +18,12 @@ job_wrs_compile:
...
@@ -15,7 +18,12 @@ job_wrs_compile:
-
rm -rf *.log
-
rm -rf *.log
-
rm -rf build
-
rm -rf build
-
rm -rf images
-
rm -rf images
-
cd wr-switch-sw ; cd userspace/ppsi ; git fetch -p; cd ../..; git submodule update; cd ..
-
rm -rf docs
-
cd wr-switch-sw
-
git clean -xfd
-
cd userspace/ppsi
-
git clean -xfd
-
git fetch -p; cd ../..; git submodule update; cd ..
-
echo "Using `grep -c ^processor /proc/cpuinfo` parallel jobs"
-
echo "Using `grep -c ^processor /proc/cpuinfo` parallel jobs"
-
MAKEFLAGS="-j `grep -c ^processor /proc/cpuinfo`" wr-switch-sw/build/wrs_build-all > ${CI_PROJECT_DIR}/log_${CI_JOB_ID}.txt
-
MAKEFLAGS="-j `grep -c ^processor /proc/cpuinfo`" wr-switch-sw/build/wrs_build-all > ${CI_PROJECT_DIR}/log_${CI_JOB_ID}.txt
-
cp *.tar ${CI_PROJECT_DIR}
-
cp *.tar ${CI_PROJECT_DIR}
...
@@ -25,5 +33,45 @@ job_wrs_compile:
...
@@ -25,5 +33,45 @@ job_wrs_compile:
paths
:
paths
:
-
log_${CI_JOB_ID}.txt
-
log_${CI_JOB_ID}.txt
-
./*.tar
-
./*.tar
job_build_docs
:
stage
:
doc
image
:
ubuntu:22.04
tags
:
tags
:
-
wrs_sw
-
wrs_sw
script
:
-
apt update
-
DEBIAN_FRONTEND=noninteractive TZ=Europe/Zurich apt -y install tzdata
-
apt upgrade -y && apt install -y git make locales texinfo texlive-latex-base texlive-latex-extra texlive-extra-utils libreoffice-common libreoffice-draw emacs graphviz
-
locale-gen en_US.UTF-8
# use the user who triggered a job to appear in binaries
-
echo "[user]" > ~/.gitconfig
-
echo " name = CI ${GITLAB_USER_NAME}" >> ~/.gitconfig
-
cd ..
-
echo "Remove leftovers from the previous build"
-
rm -rf *.tar
-
rm -rf *.log
-
rm -rf build
-
rm -rf images
-
rm -rf docs
-
rm -rf *.pdf
-
cd wr-switch-sw
-
git clean -xfd
-
cd userspace/ppsi
-
git clean -xfd
-
git fetch -p; cd ../..; git submodule update; cd ..
-
cd wr-switch-sw/doc
-
make
-
cd ${CI_PROJECT_DIR}
-
mkdir -p docs
-
cp doc/wrs-user-manual.pdf docs
-
cp doc/wrs-developer-manual.pdf docs
-
cp doc/radiusvlan.pdf docs
-
cp doc/wrs_failures/wrs_failures.pdf docs
-
cp doc/autonegotiation_ha_wr/autonegotiation_ha_wr.pdf docs
artifacts
:
name
:
"
wrs_sw_ci_docs_${CI_JOB_ID}"
when
:
always
paths
:
-
./docs/*.pdf
This diff is collapsed.
Click to expand it.
Preview
0%
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