top | item 12873530

Show HN: Build RPM and Debian Packages from git on Travis CI

3 points| rtsisyk | 9 years ago |github.com

3 comments

order

stephenr|9 years ago

Isn't Travis already running on Docker? So.. this is Docker within Docker? Is there a reason you wouldn't just use different docker images at the Travis level for this?

rtsisyk|9 years ago

Travis CI allow you to run any particular command, including Docker, on the top of their Ubuntu Precise/Trusty images. There is no way to choose other images from docker hub in the .travis.yml.

Actually, PackPack is not just for Travis, it can be also used locally:

    ~/gitrepo$ OS=fedora DIST=24 packpack        # Build for Fedora 24
    ~/gitrepo$ OS=centos DIST=7 packpack         # Build for CentOS 7
    ~/gitrepo$ OS=debian DIST=stretch packpack   # Build for Debian Stretch
    ~/gitrepo$ OS=ubuntu DIST=xenial packpack    # Build for Ubuntu Xenial
PackPack automatically bumps version in the RPM spec, packs a source tarball, creates a source RPM and then builds binary packages. You only need a proper RPM spec at `rpm/` and `major.minor` annotated git tag.