From: Leonardo Bras <leobras.c@gmail.com>
To: "Paul E . McKenney" <paulmck@kernel.org>
Cc: Leonardo Bras <leobras.c@gmail.com>, perfbook@vger.kernel.org
Subject: [PATCH] Add .gitlab-ci.yml for pdf generation and testing on Gitlab.
Date: Wed, 1 Feb 2023 17:15:29 -0300 [thread overview]
Message-ID: <20230201201529.901316-1-leobras.c@gmail.com> (raw)
Having this file merged on the main repository will trigger the Gitlab-CI
on the mirror: https://gitlab.com/linux-kernel/perfbook/ after each push.
The way it works:
- Compile-test CodeSamples
- IF pass, build PDFs: regular, 1c, eb
Signed-off-by: Leonardo Bras <leobras.c@gmail.com>
---
.gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 .gitlab-ci.yml
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..d131a4dc
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,34 @@
+image: archlinux:latest
+
+stages:
+ - test
+ - build
+
+test_codesamples:
+ stage: test
+
+ before_script:
+ - pacman --noconfirm -Sy make gcc liburcu
+
+ script:
+ - make -C CodeSamples/
+
+generate_pdfs:
+ stage: build
+
+ before_script:
+ - pacman --noconfirm -Sy texlive-most fig2dev ghostscript graphviz inkscape wget make which fontconfig git ttf-dejavu gnu-free-fonts
+ - mkdir -p ~/.local/share/fonts && cp fonts/steel-city-comic.regular.ttf ~/.local/share/fonts/ && fc-cache
+ - wget https://sourceforge.net/projects/fig2ps/files/latest/download -O /dev/shm/fig2ps.tbz
+ - mkdir /dev/shm/build && tar -xjf /dev/shm/fig2ps.tbz -C /dev/shm/build --strip-components=1
+ - make install -C /dev/shm/build
+
+ script:
+ - make perfbook.pdf perfbook-1c.pdf perfbook-eb.pdf
+
+ artifacts:
+ paths:
+ - perfbook.pdf
+ - perfbook-1c.pdf
+ - perfbook-eb.pdf
+
--
2.39.1
next reply other threads:[~2023-02-01 20:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-01 20:15 Leonardo Bras [this message]
2023-02-01 22:13 ` [PATCH] Add .gitlab-ci.yml for pdf generation and testing on Gitlab Paul E. McKenney
2023-02-02 1:49 ` Akira Yokosawa
2023-02-02 1:53 ` Paul E. McKenney
2023-02-02 2:05 ` Leonardo Brás
2023-02-02 4:37 ` Leonardo Brás
2023-02-02 14:42 ` Akira Yokosawa
2023-02-02 16:52 ` Leonardo Brás
2023-02-02 23:23 ` Akira Yokosawa
2023-02-02 23:31 ` Paul E. McKenney
2023-02-02 23:51 ` Akira Yokosawa
2023-02-03 0:05 ` Paul E. McKenney
2023-02-03 2:19 ` Leonardo Brás
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230201201529.901316-1-leobras.c@gmail.com \
--to=leobras.c@gmail.com \
--cc=paulmck@kernel.org \
--cc=perfbook@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox