rpm-ostree/.redhat-ci.yml
Colin Walters cac4522e5b Support "system/regenerate-initramfs=true" flag in origin
Currently we push for a model where the initramfs is
generated (in non-hostonly mode), and merely replicated.

However, to support a few unfortunate corner cases like dm-multipath which wants
to inject a config file into the initramfs, we need to support regenerating it
client side too.

Down the line, we'll need this to support overriding the kernel too.

This changes things in the core to add the concept of an "empty"
`RpmOstreeContext`. I initially tried skipping it, but that was too much
duplication. We still want all of the core ostree-related logic that lives in
that code too.

The treespec bits barfed if the spec didn't have a `tree/packages` key. It was
simplest to change that to allow it - and because that was the only case where
we errored out in parsing, I dropped the error handling.

There was another place in the upgrader that now needed to be fixed to handle
transitioning from just regenerating initramfs to not.

Closes: #574
Approved by: jlebon
2017-01-20 16:17:51 +00:00

109 lines
1.7 KiB
YAML

branches:
- master
- auto
- try
context: check
required: true
container:
image: projectatomic/rpm-ostree-tester
env:
CFLAGS: '-fsanitize=undefined'
build:
config-opts: >
--prefix=/usr
--libdir=/usr/lib64
--enable-installed-tests
--enable-gtk-doc
tests:
- make check
- gnome-desktop-testing-runner rpm-ostree
- sudo --user=testuser gnome-desktop-testing-runner rpm-ostree
timeout: 30m
artifacts:
- test-suite.log
- config.log
---
inherit: true
context: Clang
required: true
env:
CC: 'clang'
CFLAGS: '-Werror=unused-variable'
build:
config-opts: >
--prefix=/usr
--libdir=/usr/lib64
--enable-installed-tests
--enable-gtk-doc
--enable-new-name
tests:
artifacts:
---
inherit: true
context: vmcheck
required: true
cluster:
hosts:
- name: vmcheck
distro: fedora/25/atomic
container:
image: projectatomic/rpm-ostree-tester
tests:
- cp .redhat-ci.ssh-config ssh-config
- make vmcheck
artifacts:
- vmcheck.log
- vmcheck-journal.txt
timeout: 1h
---
context: compose
build: false
timeout: 30m
# This test case wants an "unprivileged container with bubblewrap",
# which we don't have right now; so just provision a VM and do a
# docker --privileged run.
host:
distro: fedora/25/atomic
tests:
- >
docker run --privileged -v $(pwd):/srv/code --rm
projectatomic/rpm-ostree-tester /bin/sh -c "
cd /srv/code &&
env NOCONFIGURE=1 ./autogen.sh &&
./configure --prefix=/usr --libdir=/usr/lib64 &&
make &&
make install &&
dnf update -y bubblewrap &&
./tests/compose
"
artifacts:
- compose.log