Commit Graph

24 Commits

Author SHA1 Message Date
Haibo Lin
3c72755814 Use pytest instead of nosetests
Nose has been in maintenance mode for the past several years
and pytest is a good replacement.

Other changes:
- Replace deprecated assertRegexpMatches with assertRegex
- Replace deprecated assertRaisesRegexp with assertRaisesRegex
- Replace deprecated SafeConfigParser with ConfigParser
- Force reinstall pytest and mock in tox virtualenv. This is because
  the globally installed packages may not work as expected(occured in
  jenkins job).

JIRA: RHELCMP-1619
Signed-off-by: Haibo Lin <hlin@redhat.com>
2020-07-29 14:57:16 +08:00
Lubomír Sedlář
2f05a71c61 Allow customizing nosetests command
In some environments there may not be a version of the command without a
version. In such case it's quite convenient to be able to specify what
is the actual name of the nosetests command.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2019-06-20 13:26:53 +02:00
Lubomír Sedlář
90c60f8e64 Add script to orchestrate multiple composes
It may make sense to break a big compose into smaller chunks that can be
done independently. This script allows describing the smaller parts,
runs them with correct dependencies and arranges the result to look like
a single big compose.

All parts use the same koji event, that is either obtained from Koji, or
from command line argument.

JIRA: COMPOSE-2654
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2019-01-08 09:40:36 +01:00
Lubomír Sedlář
d3a2ceb8ce Extract only first version from specfile
When tagging a new version, rpm will give us the version twice, one for
main package and one for the -utils subpackage. We should only use the
first one (they should be the same anyway).

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2017-03-06 09:08:13 +01:00
Lubomír Sedlář
d898f00d33 Create git tags without release
For upstream releases we should not need that level of granularity,
major.minor.patch version should be enough. This change will make the
tags simpler for consumers especially by removing the dist tag that adds
no value whatsoever.

Fixes: #407
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2016-09-27 09:01:13 +02:00
Lubomír Sedlář
5534fda192 Allow arbitrary arguments in make test
This can be helpful to enable additional nose plugin.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2016-09-01 10:49:36 +02:00
Lubomír Sedlář
44d6f7d708 Update makefile targets for testing
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2016-02-23 13:03:11 +01:00
Daniel Mach
a3d46f5393 Rewrite documentation to Sphinx. 2015-07-02 09:18:49 -04:00
Daniel Mach
81e935fe0e Fix test data, improve Makefile.
Previous test data was insufficient for proper testing.
Test compose runs and depsolving tests require precisely
set NVRs, dependencies, sub-packages, etc.
Using rpmfluff for these would be an overkill, it's better
to create RPMs directly from specs.
2015-06-25 08:02:57 -04:00
Daniel Mach
f5c6d44000 Initial changes for Pungi 4.0. 2015-02-10 06:47:16 -05:00
Daniel Mach
03efbfd62b Add 'make log' command to print changelog for spec. 2013-10-27 15:44:09 -04:00
Jesse Keating
ff70fea3ed Remove the MANIFEST file so that it gets created fresh each time 2009-03-09 15:34:59 -07:00
Jesse Keating
2688d1c397 Fix the Changelog target 2009-03-09 15:22:44 -07:00
Jesse Keating
2ddaea50a9 Fix output message from make archive, we do tar.bz2 not gz. 2008-04-01 14:58:38 -04:00
Jesse Keating
4b69164797 Update Makefile for git. Remove changelog, create it from git. 2008-04-01 14:58:05 -04:00
Jesse Keating
6d0d5e5839 prep for dist.
Use bzip2 (so trac can see it)
2008-01-02 17:41:54 -05:00
Jesse Keating
d98fe83e7a Be verbose about what we clean 2007-08-08 21:03:11 -04:00
Jesse Keating
20d68be58d Add a install target to make (Trac #37) 2007-06-11 14:37:35 -04:00
jkeating@reducto.boston.redhat.com
8fa5b7eb85 Add a release target 2007-02-15 18:19:20 -05:00
jkeating@reducto.boston.redhat.com
64970b214c Merged in changes from Will 2007-02-13 17:12:39 -05:00
wwoods@metroid.rdu.redhat.com
5d46c0c53b merge from jesse's branch 2007-02-13 11:06:35 -05:00
jkeating@reducto.boston.redhat.com
384608a671 Fix the makefile to not tag when making srpm
Add things to the changelog
2007-02-13 15:43:21 -05:00
jkeating@localhost.localdomain
0832f65fce New Make targets 2007-02-12 16:50:02 -05:00
jkeating@harpoon.lab.boston.redhat.com
ccbd9bac63 Add a spec file and a make file to deal with it 2006-11-08 17:52:04 -05:00