Skip to content

Commit f5d4e0c

Browse files
committed
.zuul, playbooks: Run the CI on Arch Linux
#1438
1 parent 05202bb commit f5d4e0c

File tree

4 files changed

+104
-0
lines changed

4 files changed

+104
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
/images/arch @Foxboron
88
/images/rhel @debarshiray @olivergs
99
/images/ubuntu @Jmennius
10+
/playbooks/arch @Foxboron

.zuul.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@
4848
pre-run: playbooks/setup-env-restricted.yaml
4949
run: playbooks/unit-test.yaml
5050

51+
- job:
52+
name: system-test-arch-commands-options
53+
description: Run Toolbx's commands-options system tests on Arch Linux
54+
timeout: 6300
55+
nodeset:
56+
nodes:
57+
- name: arch
58+
label: arch-linux
59+
pre-run: playbooks/arch/setup.yaml
60+
run: playbooks/system-test-commands-options.yaml
61+
5162
- job:
5263
name: system-test-fedora-rawhide-commands-options
5364
description: Run Toolbx's commands-options system tests in Fedora Rawhide
@@ -183,6 +194,7 @@
183194
- project:
184195
periodic:
185196
jobs:
197+
- system-test-arch-commands-options
186198
- system-test-fedora-rawhide-commands-options
187199
- system-test-fedora-rawhide-runtime-environment-arch-fedora
188200
- system-test-fedora-rawhide-runtime-environment-ubuntu
@@ -200,6 +212,7 @@
200212
- unit-test
201213
- unit-test-migration-path-for-coreos-toolbox
202214
- unit-test-restricted
215+
- system-test-arch-commands-options
203216
- system-test-fedora-rawhide-commands-options
204217
- system-test-fedora-rawhide-runtime-environment-arch-fedora
205218
- system-test-fedora-rawhide-runtime-environment-ubuntu
@@ -217,6 +230,7 @@
217230
- unit-test
218231
- unit-test-migration-path-for-coreos-toolbox
219232
- unit-test-restricted
233+
- system-test-arch-commands-options
220234
- system-test-fedora-rawhide-commands-options
221235
- system-test-fedora-rawhide-runtime-environment-arch-fedora
222236
- system-test-fedora-rawhide-runtime-environment-ubuntu

playbooks/arch/dependencies.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#
2+
# Copyright © 2024 Red Hat, Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
- name: Install Arch Linux packages
18+
become: yes
19+
package:
20+
update_cache: "{{ true if zuul.attempts > 1 else false }}"
21+
name:
22+
- apache
23+
- bash-completion
24+
- bats
25+
- codespell
26+
- crun
27+
- fish
28+
- flatpak
29+
- gcc
30+
- go
31+
- go-md2man
32+
- meson
33+
- ninja
34+
- openssl
35+
- podman
36+
- shadow
37+
- shellcheck
38+
- skopeo
39+
- systemd
40+
- udisks2
41+
42+
- name: Download Go modules
43+
command: go mod download -x
44+
args:
45+
chdir: '{{ zuul.project.src_dir }}/src'
46+
47+
- name: Initialize Git submodules
48+
command: git submodule init
49+
args:
50+
chdir: '{{ zuul.project.src_dir }}'
51+
52+
- name: Update Git submodules
53+
command: git submodule update
54+
args:
55+
chdir: '{{ zuul.project.src_dir }}'
56+
57+
- name: Check versions of crucial packages
58+
command: pacman --query bash bats codespell conmon containers-common crun fuse-overlayfs gcc glibc go go-md2man linux shadow shellcheck podman containernetworking-plugins skopeo
59+
60+
- name: Show Podman version
61+
command: podman version
62+
63+
- name: Show Podman related system information
64+
command: podman info --debug

playbooks/arch/setup.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# Copyright © 2021 – 2024 Red Hat, Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
---
18+
- hosts: all
19+
tasks:
20+
- include_tasks: dependencies.yaml
21+
22+
- name: Set up build directory
23+
command: meson setup --fatal-meson-warnings builddir
24+
args:
25+
chdir: '{{ zuul.project.src_dir }}'

0 commit comments

Comments
 (0)