Adding a semaphore workflow to run CI
This commit is contained in:
parent
fe02babb2f
commit
7592ce8ab0
2 changed files with 53 additions and 0 deletions
36
.semaphore/semaphore.yml
Normal file
36
.semaphore/semaphore.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
version: v1.0
|
||||
name: Cockpit Session Recording
|
||||
agent:
|
||||
machine:
|
||||
type: e1-standard-2
|
||||
os_image: ubuntu1804
|
||||
|
||||
blocks:
|
||||
- name: "Run checks"
|
||||
task:
|
||||
prologue:
|
||||
commands:
|
||||
- checkout
|
||||
- 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-32
|
||||
commands:
|
||||
- export TEST_OS=fedora-32
|
||||
- bots/image-customize -v -i cockpit-ws -i `pwd`/cockpit-session-recording*.noarch.rpm -s `pwd`/test/vm.install $TEST_OS
|
||||
- bots/image-customize -v -r "usermod -u 981 tlog || true" $TEST_OS
|
||||
- bots/image-customize -v -u ./test/files/1.journal:/var/log/journal/1.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 `pwd`/cockpit-session-recording*.noarch.rpm -s `pwd`/test/vm.install $TEST_OS
|
||||
- bots/image-customize -v -r "usermod -u 981 tlog || true" $TEST_OS
|
||||
- bots/image-customize -v -u ./test/files/1.journal:/var/log/journal/1.journal $TEST_OS
|
||||
- test/check-application -v
|
||||
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
FROM fedora:32
|
||||
|
||||
COPY . cockpit-session-recording
|
||||
|
||||
RUN sudo dnf -y install \
|
||||
git \
|
||||
gnupg \
|
||||
intltool \
|
||||
libappstream-glib \
|
||||
make \
|
||||
npm \
|
||||
rpm-build \
|
||||
rpmdevtools \
|
||||
rsync \
|
||||
tar
|
||||
|
||||
RUN cd cockpit-session-recording && make rpm
|
||||
Loading…
Add table
Add a link
Reference in a new issue