Commit graph

717 commits

Author SHA1 Message Date
Miroslav Suchý
c152ee8b1d move incorrectly placed imports 2014-11-24 18:46:05 +01:00
Miroslav Suchý
ea9496191f defattr is not needed
this is default and not needed unless we build for el4
2014-11-24 18:36:12 +01:00
Miroslav Suchý
066c6655eb get rid of wildcards imports 2014-11-24 18:34:44 +01:00
Miroslav Suchý
78c8bc2f52 E:112,24: Instance of BuilderBase has no REQUIRED_ARGS member (no-member) 2014-11-24 18:05:15 +01:00
Miroslav Suchý
ebc110d029 change inheritance for ObsReleaser
so OBS get _list_files_to_copy()
This happen when CVS releaser was obsoleted.
2014-11-24 18:03:17 +01:00
Miroslav Suchý
e14d7d7d3b raw_input was renamed under python3 2014-11-24 17:56:06 +01:00
Miroslav Suchý
b5773a9031 TypeError: __init__() takes exactly 1 argument (2 given) 2014-11-24 17:51:25 +01:00
Dominic Cleal
627b4860da MockBuilder: cleanup underlying builder on completion 2014-10-14 11:37:37 +01:00
Devan Goodwin
38dbc0a7b4 Fix bugs building old tag with custom tito.props. (at that time)
Need test coverage here, may still be more issues.
2014-09-29 14:10:23 -03:00
Devan Goodwin
bd3daf8f60 Add EL7 releaser. 2014-09-29 14:10:12 -03:00
Paul Morgan
20334d52ed remove f19 from test harness to save space and time
* Save disk space on dev host by avoiding `docker pull mattdm/fedora'
* Save time by not building a fedora 19 image and running its tests

We can always revert this commit if we need to run tests on f19.
2014-07-04 16:26:23 +00:00
Paul Morgan
fe0b6d8863 add fedora-rawhide to test harness
Use the "semi-official" base image for rawhide.
It appears to be updated on a regular basis.

This gives us advance warning of breaking changes
in the bleeding-edge version of fedora.
2014-07-04 16:26:23 +00:00
Paul Morgan
b479eb8cf7 use "semi-official" f20 base instead of mattdm/fedora
https://index.docker.io/_/fedora/ states:

> This image is to be considered semi-official from fedora's side
> (until approved by fedora rel-eng)
2014-07-04 16:26:23 +00:00
Paul Morgan
4aeab5dcc1 add f19 to test harness to test conditional build deps
* fedora 19 does not have rpm-python3, thus we only test python2.
* assert that build deps are correct for fedora 19
2014-07-04 16:26:23 +00:00
Paul Morgan
ea7404d6a5 DRY up test harness to use spec file for build deps
Ensure build deps are consistent across the spec file and test harness.

Note: http://fedoraproject.org/wiki/HOWTOFindMissingBuildRequires
says that some packages should not be BuildRequires because
"they would occur too often" and "are considered the minimum build
environment." However, Docker changes the scope of that assumption
to keep docker images small.
2014-07-04 16:26:23 +00:00
Paul Morgan
bba9c91262 add links to upstream announcements and how-to articles
...as suggested in dgoodwin/tito#139

(plus remove trailing whitespace)
2014-07-04 16:10:02 +00:00
Paul Morgan
b3e0827d2c add rpmdevtools as build dep for el5
9feb9cf4 added rpmdevtools as an install depedency;
it is also needed as a build dep for current functional tests.
2014-07-04 14:34:00 +00:00
Devan Goodwin
a66aeb455d Style fixes. 2014-06-23 15:03:55 -03:00
Devan Goodwin
c4f1755813 Fix failing tests with no ~/.bugzillarc. 2014-06-23 15:01:57 -03:00
Devan Goodwin
cdf54b6ec5 Merge branch 'bzflagcheck'
Conflicts:
	hacking/titotest-centos-5.9/Dockerfile
2014-06-23 14:50:27 -03:00
Devan Goodwin
8eae79c04a Add documentation for bugzilla flag checking. 2014-06-23 14:46:42 -03:00
Devan Goodwin
ab4f8a224a Hookup bugzilla flag checking with dist git releasers. 2014-06-23 13:22:57 -03:00
Devan Goodwin
d978873738 Fixes for Python 3. 2014-06-23 09:45:41 -03:00
Devan Goodwin
bf19a130a7 Add support for checking bz flags. 2014-06-20 14:53:22 -03:00
Devan Goodwin
76cea1ebf0 Refactor dist-git releasers to separate module. 2014-06-19 15:36:23 -03:00
Devan Goodwin
e3f1cf7405 Merge pull request #138 from tlestach/version_template_examples
fix the configuration examples to match the code
2014-06-19 15:23:02 -03:00
Tomas Lestach
2440e2034c fix the configuration examples to match the code 2014-06-19 18:27:59 +02:00
jesus m. rodriguez
c8b4fd3a5e Merge pull request #137 from jumanjiman/mailmap
add mailmap for cleaner shortlog output
2014-06-01 22:33:34 -04:00
Paul Morgan
74911c8506 add mailmap for cleaner shortlog output 2014-05-31 20:47:08 +00:00
Devan Goodwin
30003b48ff Merge pull request #136 from jumanjiman/rm
remove intermediate containers in test harness
2014-05-27 08:48:16 -03:00
Paul Morgan
58e6360698 remove intermediate containers in test harness
Save disk space on workstation.
2014-05-26 23:49:22 +00:00
Devan Goodwin
fd48262fbb Merge pull request #134 from jumanjiman/issue_133
add build dependency for el5 and new functional tests
2014-05-26 16:04:43 -03:00
Paul Morgan
cd0cc194be add build dependency for el5 and new functional tests
* asciidoc indirectly requires docbook-style-xsl on el6 and f20,
  but not on el5. Resolve failure to build tito with tito on el5:
  "I/O error : Attempt to load network entity"

* Resolve "egg missing file" on el5 due to busted symlinks
  from 20c4f1b7c0.

* Add functional test to build tito with itself in order to
  catch problems like the ones above.

Closes https://github.com/dgoodwin/tito/issues/133
2014-05-26 18:37:00 +00:00
Dominic Cleal
8a126b1f40 Allow overriding of builder on all releasers 2014-05-20 09:07:10 +01:00
Devan Goodwin
10700b66f5 Merge pull request #131 from domcleal/builder-cleanup
Cleanup builders on interruption when called directly
2014-05-19 12:13:21 -03:00
Dominic Cleal
e434f14459 Cleanup builders on interruption when called directly 2014-05-19 11:08:04 +01:00
Devan Goodwin
71c857add4 Automatic commit of package [tito] release [0.5.5-1]. 2014-05-16 13:04:40 -03:00
Devan Goodwin
8be80a288e Merge pull request #130 from domcleal/git-annex-cleanup
Fix bugs in git-annex cleanup method
2014-05-16 10:52:17 -03:00
Devan Goodwin
48e4fcedca Fix a test issue. 2014-05-16 10:52:01 -03:00
Dominic Cleal
993ca4cedc Fix bugs in git-annex cleanup method 2014-05-16 13:16:37 +01:00
Devan Goodwin
51eabdf0ac Merge pull request #129 from domcleal/noisy-whitespace
Remove excess whitespace on EL6 and duplicate SRPM output
2014-05-16 08:30:23 -03:00
Dominic Cleal
596cb07e68 Remove excess whitespace on EL6 and duplicate SRPM output 2014-05-16 11:08:49 +01:00
Devan Goodwin
24693f7584 Automatic commit of package [tito] release [0.5.4-1]. 2014-05-12 11:11:03 -03:00
Devan Goodwin
cb6985b205 Merge pull request #127 from jumanjiman/python3_cmp
make version comparison compat with python2 and python3
2014-05-12 10:59:30 -03:00
Dominic Cleal
5eadb047aa Move compare_version test into correct class 2014-05-12 13:07:09 +00:00
Paul Morgan
576d46345f make version comparison compat with python2 and python3
Alas, python3 doesn't have the cmp() function.

Support both python2 and python3 for comparisons using tip from
https://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons

Avoids TB on python3:

    ======================================================================
    ERROR: test_compare_version (unit.common-tests.ExtractBugzillasTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/sandbox/test/unit/common-tests.py", line 224, in test_compare_version
        self.assertEquals(0, compare_version("1", "1"))
      File "/home/sandbox/src/tito/common.py", line 689, in compare_version
        return cmp(normalize(version1), normalize(version2))
    NameError: global name 'cmp' is not defined
2014-05-12 12:25:18 +00:00
Devan Goodwin
0ecdf60026 Automatic commit of package [tito] release [0.5.3-1]. 2014-05-12 08:52:17 -03:00
Devan Goodwin
b4c103ea4f Merge pull request #125 from domcleal/git-annex-el6
Support pre-5.20131213 versions of git-annex for EL6
2014-05-12 08:50:42 -03:00
Devan Goodwin
68326173d4 Merge pull request #126 from jumanjiman/el5
avoid syntax error on el5
2014-05-12 08:34:48 -03:00
Paul Morgan
3f78f626b0 avoid syntax error on el5
run_command_print originally used trailing comma to suppress newline,
but python3 needs a named argument (`end=`) [1].

38446dca added 'from future...' to support python3's `end=` argument,
but the import causes error on el5:

    SyntaxError (future feature print_function is not defined

6b9787e2 introduced an approach to strip newlines compatible
with both el5's python2 and fedora 20's python3.

This means we don't need the future import any more, and
we can safely remove it to restore el5 compatibility.

[1] https://docs.python.org/3.0/whatsnew/3.0.html#print-is-a-function
2014-05-11 20:55:07 +00:00