diff options
author | Arif Ali <arif.ali@canonical.com> | 2023-11-07 13:58:25 +0200 |
---|---|---|
committer | Jake Hunsaker <jacob.r.hunsaker@gmail.com> | 2023-11-12 16:46:50 -0500 |
commit | 314cc502ac862494973712537bf7a7a0c34f96d8 (patch) | |
tree | 0f46024376820db73b2a8c47e01f075c7dc598f8 /debian/rules | |
parent | 52c92373ddc7ad29972ed23782c365d5d3a356bc (diff) | |
download | sos-314cc502ac862494973712537bf7a7a0c34f96d8.tar.gz |
[debian] Packaging and testing for debian pkgs
Initial start of building and testing the deb package
This will improve the overall testing of sos over the Ubuntu releases,
and also helps with the basis of thenadding further stagetwo testing in
the future. This will help to pick up issues automatically rather than
the manual testing.
Add ubuntu-latest for deb CI build and testing. Update the GCE images
for all ubuntu images for CI testing
Co-authored-by: Nikhil Kshirsagar <nikhil.kshirsagar@canonical.com>
Signed-off-by: Nikhil Kshirsagar <nikhil.kshirsagar@canonical.com>
Signed-off-by: Arif Ali <arif.ali@canonical.com>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..79b75aad --- /dev/null +++ b/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=sosreport + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_install: + # Move config file to the right location. + mv debian/sosreport/usr/config/sos.conf debian/sosreport/etc/sos/sos.conf + # Remove unnecessary unused dir. + rm -rf debian/sosreport/usr/config + +override_dh_auto_test: + nosetests3 -v --with-cover --cover-package=sos tests/unittests |