and be able to specify the precise list of deps needed to create the SRPM Details: https://packit.dev/posts/copr-srpms/ Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
34 lines
1.4 KiB
YAML
34 lines
1.4 KiB
YAML
# Enable RPM builds and running integration tests in PRs through https://packit.dev/
|
|
# To use this, enable Packit-as-a-service in GitHub: https://packit.dev/docs/packit-as-a-service/
|
|
# See https://packit.dev/docs/configuration/ for the format of this file
|
|
|
|
specfile_path: cockpit-starter-kit.spec
|
|
srpm_build_deps:
|
|
- make
|
|
- npm
|
|
actions:
|
|
post-upstream-clone:
|
|
post-upstream-clone:
|
|
- make cockpit-starter-kit.spec
|
|
# replace Source1 manually, as create-archive: can't handle multiple tarballs
|
|
- make node-cache
|
|
- sh -c 'sed -i "/^Source1:/ s/https:.*/$(ls *-node*.tar.xz)/" cockpit-*.spec'
|
|
# build in development mode; production mode uses too much memory for limited
|
|
# sandcastle containers; also reduce memory consumption of webpack
|
|
# https://github.com/packit/sandcastle/pull/92
|
|
# https://medium.com/the-node-js-collection/node-js-memory-management-in-container-environments-7eb8409a74e8
|
|
create-archive:
|
|
- make NODE_ENV=development NODE_OPTIONS=--max-old-space-size=500
|
|
# dummy LICENSE.txt, as terser did not run
|
|
- touch dist/index.js.LICENSE.txt.gz
|
|
- make dist
|
|
# starter-kit.git has no release tags; your project can drop this once you have a release
|
|
get-current-version: make print-version
|
|
jobs:
|
|
- job: tests
|
|
trigger: pull_request
|
|
metadata:
|
|
targets:
|
|
- fedora-all
|
|
- centos-stream-8
|
|
- centos-stream-9
|