Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Commit

Permalink
Enable Cirrus CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
carlwgeorge committed Apr 25, 2019
1 parent f740829 commit 74d23c9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
task:
env:
RELEASEVER: 7
name: el$RELEASEVER
container:
image: centos:$RELEASEVER
epel_script: yum --assumeyes install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm
toolchain_script: yum --assumeyes install yum-utils rpmdevtools @buildsys-build
sources_script: spectool --get-files $CIRRUS_REPO_NAME.spec
srpm_script: rpmbuild -bs --define "_sourcedir $PWD" --define "_specdir $PWD" --define "dist .el$RELEASEVER.ius" $CIRRUS_REPO_NAME.spec
builddep_script: yum-builddep --assumeyes $HOME/rpmbuild/SRPMS/$CIRRUS_REPO_NAME-*.src.rpm
rpm_script: rpmbuild -bb --define "_sourcedir $PWD" --define "_specdir $PWD" --define "dist .el$RELEASEVER.ius" $CIRRUS_REPO_NAME.spec
gather_script:
- mv --verbose $HOME/rpmbuild/SRPMS/*.src.rpm .
- mv --verbose $HOME/rpmbuild/RPMS/*/*.rpm .
results_artifacts:
path: '*.rpm'

0 comments on commit 74d23c9

Please sign in to comment.