aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2021-07-20 14:26:04 -0400
committerJake Hunsaker <jhunsake@redhat.com>2021-07-29 12:50:01 -0400
commit435b0ee8962e933600145e1ffaef10353ee33f31 (patch)
treec01604c7f0f68a87841ae3315eb54c3e24c20911
parent27f3b7e8c34820681ca8c3228a2b9e24550764e2 (diff)
downloadsos-435b0ee8962e933600145e1ffaef10353ee33f31.tar.gz
[build,tests] Include .po files for manual builds, add cirrus test
First, adds a MANIFEST.in file for distutils to reference, so that we can easily ensure that the .po files are included in any manual build from the git checkout. Second, add a cirrus task to ensure that basic rpm builds from the git checkout can be done by the user. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--.cirrus.yml14
-rw-r--r--MANIFEST.in1
2 files changed, 15 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index f1249aab..94f244be 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -70,6 +70,20 @@ py_break_task:
setup_script: pip install -r requirements.txt
main_script: ./bin/sos report --batch
+# Make sure a user can manually build an rpm from the checkout
+rpm_build_task:
+ alias: "rpm_build"
+ name: "RPM Build From Checkout"
+ container:
+ image: "fedora"
+ setup_script: dnf -y install rpm-build rpmdevtools gettext python3-devel
+ main_script: |
+ rpmdev-setuptree
+ python3 setup.py sdist
+ cp dist/sos*.tar.gz ~/rpmbuild/SOURCES
+ rpmbuild -bs sos.spec
+ rpmbuild -bb sos.spec
+
# Run the stage one (no mocking) tests across all distros on GCP
report_stageone_task:
alias: "stageone_report"
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 00000000..75ce7feb
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1 @@
+include po/*.po