starter-kit/.semaphore/semaphore.yml
Justin Stephenson 39a359bffb Remove unneeded tlog UID code
The tlog UID was being set explicitly to ensure journalctl matches
used during tests would find pre-recorded journals. This is no longer
needed as we removed the TLOG_UID filter from the journalctl match
string.
2022-06-09 10:36:25 -04:00

43 lines
1.7 KiB
YAML

version: v1.0
name: Cockpit Session Recording
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
blocks:
- name: "Run checks"
task:
prologue:
commands:
- checkout
- sudo rm -rf /etc/localtime
- sudo ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
- sudo apt install -y python3-libvirt
- docker build -t rpmbuilder .
- id=$(docker create rpmbuilder)
- docker cp $id:/cockpit-session-recording/ .
- cd cockpit-session-recording
- make test/common
- make bots
jobs:
- name: Check fedora-35
commands:
- export TEST_OS=fedora-35
- bots/image-customize -v -i cockpit-ws -i cockpit-packagekit -i `pwd`/cockpit-session-recording*.noarch.rpm -s `pwd`/test/vm.install $TEST_OS
- bots/image-customize -v -u ./test/files/1.journal:/var/log/journal/1.journal $TEST_OS
- bots/image-customize -v -u ./test/files/binary-rec.journal:/var/log/journal/binary-rec.journal $TEST_OS
- test/check-application -v
- name: Check centos-8
commands:
- export TEST_OS=centos-8-stream
- bots/image-customize -v -i cockpit-ws -i cockpit-packagekit -i `pwd`/cockpit-session-recording*.noarch.rpm -s `pwd`/test/vm.install $TEST_OS
- bots/image-customize -v -u ./test/files/1.journal:/var/log/journal/1.journal $TEST_OS
- bots/image-customize -v -u ./test/files/binary-rec.journal:/var/log/journal/binary-rec.journal $TEST_OS
- test/check-application -v
epilogue:
on_fail:
commands:
- mkdir testfails
- cp TestApplication* testfails
- artifact push job testfails