Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: test rpm build as part of travis automation #183

Open
jscotka opened this issue Nov 30, 2017 · 0 comments
Open

test: test rpm build as part of travis automation #183

jscotka opened this issue Nov 30, 2017 · 0 comments
Assignees

Comments

@jscotka
Copy link
Collaborator

jscotka commented Nov 30, 2017

  • use docker for fedora env
  • use make source to build tar archive
  • use mock to build srpm package
  • use mock to build rpm package

examle commands (it is not set of full steps, and not anyhow working):

docker run -v $(pwd):/opt/ fedora bash -c "cd /opt/; 
  dnf -y install rpm-build make gcc;
  make install_pip;
  make dist;
  rpmbuild --rebuild mtf.spec"

make source

mock --spec=meta-test-family.spec --source=dist/meta-test-family-0.7.7.tar.gz --buildsrpm
@psklenar psklenar self-assigned this Nov 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants