mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-20 20:04:19 +08:00
Add CI taret for os-test
This commit is contained in:
parent
38d9a374f7
commit
86f65219a8
21
config/os-test.toml
Normal file
21
config/os-test.toml
Normal file
@ -0,0 +1,21 @@
|
||||
# Configuration for testing
|
||||
|
||||
include = ["server.toml"]
|
||||
|
||||
# General settings
|
||||
[general]
|
||||
# Filesystem size in MiB
|
||||
filesystem_size = 1024
|
||||
# Do not prompt if settings are not defined
|
||||
prompt = false
|
||||
|
||||
# Package settings
|
||||
[packages]
|
||||
os-test-bins = {} # Provides source and cross-compiled binaries
|
||||
|
||||
[[files]]
|
||||
path = "/usr/lib/init.d/30_console"
|
||||
data = """
|
||||
os-test-runner
|
||||
shutdown
|
||||
"""
|
||||
14
config/x86_64/os-test.toml
Normal file
14
config/x86_64/os-test.toml
Normal file
@ -0,0 +1,14 @@
|
||||
# Configuration for testing
|
||||
|
||||
include = ["../os-test.toml"]
|
||||
|
||||
# Override the default settings here
|
||||
|
||||
# General settings
|
||||
[general]
|
||||
# Filesystem size in MiB
|
||||
# filesystem_size = 1024
|
||||
|
||||
# Package settings
|
||||
[packages]
|
||||
# example = {}
|
||||
13
mk/ci.mk
13
mk/ci.mk
@ -21,6 +21,19 @@ server desktop demo: FORCE
|
||||
cp "build/$(ARCH)/$@/harddrive.img" "$(IMG_DIR)/redox_$(@)$(IMG_SEPARATOR)$(IMG_TAG)_harddrive.img"
|
||||
cp "build/$(ARCH)/$@/redox-live.iso" "$(IMG_DIR)/redox_$(@)$(IMG_SEPARATOR)$(IMG_TAG)_livedisk.iso"
|
||||
|
||||
ci-os-test: FORCE
|
||||
make CONFIG_NAME=os-test unmount
|
||||
rm -f "build/$(ARCH)/os-test/harddrive.img"
|
||||
$(MAKE) CONFIG_NAME=os-test qemu gpu=no
|
||||
$(MAKE) CONFIG_NAME=os-test mount
|
||||
tar \
|
||||
--create \
|
||||
--gzip \
|
||||
--file "build/$(ARCH)/os-test/os-test.tar.gz" \
|
||||
--directory="build/$(ARCH)/os-test/filesystem/usr/share/os-test" \
|
||||
html os-test.json out
|
||||
$(MAKE) CONFIG_NAME=os-test unmount
|
||||
|
||||
# CI packaging target
|
||||
ci-pkg: prefix $(FSTOOLS_TAG) $(CONTAINER_TAG) FORCE
|
||||
ifeq ($(PODMAN_BUILD),1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user