Skip to content

Commit

Permalink
Enable Packit building and Testing Farm testing
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Oct 9, 2019
1 parent e1043ca commit 2a37804
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
specfile_path: tmt.spec
synced_files:
- tmt.spec

upstream_project_name: tmt
downstream_package_name: tmt

current_version_command: ["make", "packit-version"]

actions:
create-archive:
- make packit-tarball
- make packit-path

jobs:
- job: copr_build
trigger: pull_request
metadata:
targets:
- fedora-rawhide-x86_64
- fedora-30-x86_64
- fedora-29-x86_64

- job: tests
trigger: pull_request
metadata:
targets:
- fedora-29-x86_64
- fedora-30-x86_64
- fedora-rawhide-x86_64
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ srpm: tarball
packages: rpm srpm


# Packit stuff
packit-tarball: tarball
mv $(TMP)/SOURCES/$(PACKAGE).tar.gz .
packit-path:
@printf "$(PACKAGE).tar.gz"
packit-version:
@printf "$(VERSION)"


# Python packaging
wheel:
python setup.py bdist_wheel
Expand Down
2 changes: 1 addition & 1 deletion tmt.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ License: MIT
BuildArch: noarch

URL: https://github.com/psss/tmt
Source: https://github.com/psss/tmt/releases/download/%{version}/tmt-%{version}.tar.gz
Source0: https://github.com/psss/tmt/releases/download/%{version}/tmt-%{version}.tar.gz

# Depending on the distro, we set some defaults.
# Note that the bcond macros are named for the CLI option they create.
Expand Down

0 comments on commit 2a37804

Please sign in to comment.