perfbook.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Leonardo Bras <leobras.c@gmail.com>
To: "Paul E . McKenney" <paulmck@kernel.org>
Cc: Leonardo Bras <leobras.c@gmail.com>,
	Akira Yokosawa <akiyks@gmail.com>,
	perfbook@vger.kernel.org
Subject: [PATCH v2] Add utilities/gitlab-ci.yml for pdf generation and testing on Gitlab.
Date: Thu,  2 Feb 2023 23:18:55 -0300	[thread overview]
Message-ID: <20230203021853.34207-1-leobras.c@gmail.com> (raw)

For Gitlab repositories mirroring the original repository, trigger the
Gitlab-CI after every push to the original repo.

For the pipeline to run, the Gitlab repo needs to configure:
- Settings -> CI/CD -> General Pipelines -> CI/CD configuration file to
  utilities/gitlab-ci.yml

What the pipeline does:
- Compile-test CodeSamples
- IF pass, build PDFs: regular, 1c, eb

Signed-off-by: Leonardo Bras <leobras.c@gmail.com>
---
 utilities/gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 utilities/gitlab-ci.yml

diff --git a/utilities/gitlab-ci.yml b/utilities/gitlab-ci.yml
new file mode 100644
index 00000000..acc12fb2
--- /dev/null
+++ b/utilities/gitlab-ci.yml
@@ -0,0 +1,33 @@
+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


             reply	other threads:[~2023-02-03  2:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-03  2:18 Leonardo Bras [this message]
2023-02-03  3:03 ` [PATCH v2] Add utilities/gitlab-ci.yml for pdf generation and testing on Gitlab Akira Yokosawa
2023-02-03  4:48   ` Paul E. McKenney
2023-02-03  5:30     ` Leonardo Brás
2023-02-03  5:43       ` Paul E. McKenney

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=20230203021853.34207-1-leobras.c@gmail.com \
    --to=leobras.c@gmail.com \
    --cc=akiyks@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).