Commit e94e5d36 authored by Leo P. Singer's avatar Leo P. Singer
Browse files

Use minimal image for building RPM

The unit tests don't like it if there is an existing version of
glue installed.
parent cb6540aa
......@@ -103,15 +103,16 @@ deploy:stretch:
deploy:el7:
stage: deploy
image: ligo/lalsuite-dev:el7
image: ligo/base:el7
variables:
GIT_STRATEGY: none
before_script:
- yum install -y rpmlint
- yum install -y gcc make rpm-build rpmlint yum-utils
script:
- mkdir -p ~/rpmbuild/{SOURCES,SPECS}
- tar -C ~/rpmbuild/SPECS -xf *.tar.* --strip-components 2 '*/etc/glue.spec'
- mv *.tar.* ~/rpmbuild/SOURCES
- yum-builddep -y ~/rpmbuild/SPECS/*.spec
- rpmbuild -ba ~/rpmbuild/SPECS/*.spec
- mv $(find ~/rpmbuild/{RPMS,SPECS,SRPMS} -type f) .
- rpmlint *.{rpm,spec}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment