forked from cockpit-project/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packit.yaml
25 lines (25 loc) · 1.06 KB
/
packit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
specfile_path: cockpit.spec
actions:
post-upstream-clone:
# this is being triggered immediately on a pull_request event; wait for
# build-dist.yml to generate the dist tarball. git rebase needs an
# identity in order to rewrite the committer field.
- git config --global user.name 'nobody'
- git config --global user.email '<>'
- tools/webpack-jumpstart --wait --rebase
# the upstream git spec file has unresolved macros which are normally put
# in at `make dist` time; they are not important for CI
# also, build optional packages for CentOS 8
- sh -c 'sed "s/%{npm-version:.*}/0/; s/build_optional 0/build_optional 1/" tools/cockpit.spec > cockpit.spec'
create-archive:
- ./autogen.sh --disable-polkit --disable-ssh --disable-pcp --with-systemdunitdir=/invalid CPPFLAGS=-Itools/mock-build-env PKG_CONFIG_PATH=tools/mock-build-env
- make XZ_OPT=-0 dist
- sh -c 'echo cockpit-*.tar.xz'
jobs:
- job: tests
trigger: pull_request
metadata:
targets:
- fedora-34
- fedora-35
- centos-stream-8-x86_64