* .gitlab-ci.yml (rpm-pkg): Start from the make-dist tarball.
This commit is contained in:
parent
35fca49075
commit
b7995fcc5d
1 changed files with 10 additions and 7 deletions
|
|
@ -376,7 +376,12 @@ debpkg-unstable-i386:
|
||||||
- _build_unstable/
|
- _build_unstable/
|
||||||
|
|
||||||
rpm-pkg:
|
rpm-pkg:
|
||||||
stage: build
|
stage: build2
|
||||||
|
needs:
|
||||||
|
- job: make-dist
|
||||||
|
artifacts: true
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
only:
|
only:
|
||||||
- /-rpm$/
|
- /-rpm$/
|
||||||
- master
|
- master
|
||||||
|
|
@ -384,12 +389,10 @@ rpm-pkg:
|
||||||
- stable
|
- stable
|
||||||
image: gitlab-registry.lre.epita.fr/spot/buildenv/fedora
|
image: gitlab-registry.lre.epita.fr/spot/buildenv/fedora
|
||||||
script:
|
script:
|
||||||
- autoreconf -vfi
|
- VERSION=`cat VERSION`
|
||||||
- ./configure
|
- tar xvf spot-$VERSION.tar.gz spot-$VERSION/spot.spec
|
||||||
- make
|
- cp spot-$VERSION.tar.gz ~/rpmbuild/SOURCES/
|
||||||
- make dist
|
- cp spot-$VERSION/spot.spec ~/rpmbuild/SPECS/
|
||||||
- cp spot-*.tar.gz ~/rpmbuild/SOURCES/
|
|
||||||
- cp spot.spec ~/rpmbuild/SPECS/
|
|
||||||
- rpmbuild -bb ~/rpmbuild/SPECS/spot.spec
|
- rpmbuild -bb ~/rpmbuild/SPECS/spot.spec
|
||||||
- mv ~/rpmbuild/RPMS/x86_64/*.rpm .
|
- mv ~/rpmbuild/RPMS/x86_64/*.rpm .
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue