Commit graph

301 commits

Author SHA1 Message Date
Devan Goodwin
00ab8ed301 Allow one build to go to multiple yum repo URLs.
Can save time for noarch packages.
2011-11-25 15:59:32 -04:00
Devan Goodwin
3335c2f3ff Rename to BrewDownloadBuilder. 2011-11-25 15:02:48 -04:00
Devan Goodwin
ef5e850e30 Fix --no-cleanup for release module. 2011-11-25 13:47:15 -04:00
Devan Goodwin
13fa8d03e5 Add a BrewPreBuiltBuilder.
Allows you to use pre-submitted brew builds as if they were generated
locally. Build *must* have been submitted to brew beforehand, otherwise
this will fail.
2011-11-25 12:06:40 -04:00
Devan Goodwin
2703e77cac Use proper temp directories to build. 2011-11-25 11:31:21 -04:00
Devan Goodwin
8246ec2b79 Functional test fix. 2011-11-25 11:30:51 -04:00
Devan Goodwin
2fb1dfcb97 Fix permissions when rsync'ing yum repositories.
Needed --no-p and --no-g.
2011-11-22 13:24:21 -04:00
Devan Goodwin
a38c18c465 Switch to CLI fedpkg command instead of module.
fedpkg doesn't appear to be very stable API, switch to using CLI
commands instead.
2011-11-16 16:27:26 -04:00
Devan Goodwin
dc19166bfc Automatic commit of package [tito] release [0.4.0-1]. 2011-11-09 12:37:23 -04:00
Devan Goodwin
de072d8761 Update releasers.conf. 2011-11-09 12:35:37 -04:00
Devan Goodwin
805cb491ba Fix import error with new fedpkg version.
Fedpkg library has changed location and name, support both for now,
we'll adjust later if necessary.
2011-11-09 12:34:50 -04:00
Devan Goodwin
ffe976cf14 Fix default builder/tagger. 2011-10-25 11:32:54 -03:00
Devan Goodwin
3f692f132a Add a KojiGitReleaser.
Originating from the Spacewalk project, this will allow you to build
through koji but by specifying a URL to git and a tag, rather than
submitting an srpm directly.
2011-10-25 11:27:08 -03:00
Devan Goodwin
60ce1c79e9 Merge branch 'master' of https://github.com/awood/tito
Conflicts:
	src/tito/cli.py
2011-10-24 12:26:31 -03:00
Devan Goodwin
1062426b19 Fix koji tito.props release hack. 2011-10-24 11:38:35 -03:00
Alex Wood
3a621a9cc2 Adding --use-version to allow Tito to force a version to use. 2011-10-21 16:23:01 -04:00
Devan Goodwin
b5ef1cf8ad Allow mock builder to override the config dir. 2011-10-18 16:48:07 -03:00
Devan Goodwin
90f5774ae8 Koji release target config fixes. 2011-10-18 10:07:09 -03:00
Devan Goodwin
dd4688d8a2 squash 2011-10-18 10:01:54 -03:00
Devan Goodwin
93f2ab12e0 Support SCRATCH=1 env variable for koji releaser. 2011-10-18 09:57:11 -03:00
Devan Goodwin
6a35225ad7 Support ONLY_TAGS env variable for koji releaser. 2011-10-18 09:55:53 -03:00
Devan Goodwin
41ce73a5ae Cleanup, add TODO. 2011-10-17 23:26:06 -03:00
Devan Goodwin
8298b5e304 List releasers option. 2011-10-17 14:26:31 -03:00
Devan Goodwin
e023b08c9d Fix bug printing releasers when none provided. 2011-10-17 14:10:38 -03:00
Devan Goodwin
587daeeb2a Fix --all option. 2011-10-17 12:56:49 -03:00
Devan Goodwin
f5fd187352 Add --all option for release. 2011-10-17 12:18:23 -03:00
Devan Goodwin
d2c7fdf042 Documentation update.
More to come...
2011-10-16 14:34:23 -03:00
Devan Goodwin
72ff053cad Respect --dry-run when releasing to yum. 2011-10-16 13:26:08 -03:00
Devan Goodwin
d94aacae64 Another fix for multi-target releasing. 2011-10-16 13:25:55 -03:00
Devan Goodwin
3e8335fdce Fix output bug. 2011-10-16 12:56:35 -03:00
Devan Goodwin
1f9b18ef06 Fix bug with multi-target release. 2011-10-16 12:51:01 -03:00
Devan Goodwin
376eafcc1b Allow releaseing to multiple targets at once, and add --all-starting-with. 2011-10-16 12:08:02 -03:00
Devan Goodwin
b8fabef70f Continue porting releasers to use target config. 2011-10-16 11:49:34 -03:00
Devan Goodwin
f40f2935a8 Make auto-install available to all builders. 2011-10-16 08:54:32 -03:00
Devan Goodwin
15ebcb4470 Allow setting specific builder and passing builder args on CLI.
Can now build with a specific builder, and pass it required arguments.

i.e. tito build --builder mock --builder-arg mock=fedora-16-x86_64
2011-10-15 16:55:28 -03:00
Devan Goodwin
35f31ea0df Add new mechanism for passing custom arguments to builders.
This is something to avoid using if possible, you wouldn't want to
require these for a builder that's the default for your project,
otherwise you'd need to specify it every time you ran the CLI.

However builders like the mock builder need to know which mock config to
use, and it could be multiple values for one project trying to do builds
for multiple OSs.

Adding a "builder.prop = value" to a releaser target section will pass
the valie prop to the builder configured.
2011-10-15 16:00:01 -03:00
Devan Goodwin
3cd4b532e4 Document builder constructor arguments. 2011-10-15 15:34:44 -03:00
Devan Goodwin
a9837f3cfc HACKING tips updated. 2011-10-15 13:17:07 -03:00
Devan Goodwin
a7574706b9 Actually use releaser config instead of hardcoded values. 2011-10-15 13:11:02 -03:00
Devan Goodwin
e1eff8f63e Add a rsync username env variable for yum repo releaser. 2011-10-15 13:10:32 -03:00
Devan Goodwin
4698dff21f Restructure release CLI. 2011-10-15 13:10:32 -03:00
Devan Goodwin
7b449a2d7b Prototype mock builder and yum releaser.
Still with configuration hard coded, but demonstrates building via mock,
and then assembling built packages into a yum repository.
2011-10-15 13:10:32 -03:00
Alex Wood
fd4af9ef85 Parsing spec files and bumping their versions or releases is now in Python. 2011-10-13 13:38:42 -04:00
Devan Goodwin
df594445e3 Update for new fedpkg/Fedora git branch names... again... 2011-10-05 16:46:37 -03:00
Devan Goodwin
34c2a7dda0 Automatic commit of package [tito] release [0.3.3-1]. 2011-10-05 15:52:33 -03:00
Devan Goodwin
cc609621a6 Clarify some initial project layout documentation. 2011-09-13 10:26:16 -03:00
Devan Goodwin
76ec2ef844 Merge remote-tracking branch 'jumanjiman/master' 2011-08-02 11:27:45 -03:00
Mike McCune
8a436f47a3 match based on the tag for the package we are building
If you just find the most recent tag during a --test build
you run into git finding recent tags for *other* packages that are also
in the same git repo.  For example, if you have a git repo with 2
packages:

package-a
package-b

and you make a tag on package-a and have:

package-a-0.1.1-1

then you make a few commits and someone does a tag on package-b:

package-b-0.1.1-1

then a few more commits are done on code in package-a but nobody retags.
Now git describe will look back for the most recent tag and find
package-b-0.1.1-1 and have a commit count of the number of commits from
the package-b tag and not from the package-a tag.  By passing in the
--match option on 'git describe' we force git to only look for the tag
for the current package, not the most recent in the repo.
2011-08-02 11:18:09 -03:00
Miroslav Suchý
d70b061095 learn tito how to checkout EUS branches 2011-08-02 11:11:44 -03:00
Miroslav Suchý
e7b355b316 _update_package_metadata() does not allwo release parameter no more
this is left over after commit 7c3c04f7
Release type is now handled by overriden release_type() method.

addressing:
Traceback (most recent call last):
  File "/usr/bin/tito", line 23, in <module>
    CLI().main(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/tito/cli.py", line 98, in main
    return module.main(argv)
  File "/usr/lib/python2.7/site-packages/tito/cli.py", line 515, in main
    return tagger.run(self.options)
  File "/usr/lib/python2.7/site-packages/tito/tagger.py", line 96, in run
    self._tag_release()
  File "/usr/lib/python2.7/site-packages/tito/zstreamtagger.py", line 20, in _tag_release
    self._update_package_metadata(new_version, release=True)
TypeError: _update_package_metadata() got an unexpected keyword argument 'release'
2011-08-02 10:25:54 -03:00