forked from iusrepo/git224
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
28 lines (28 loc) · 958 Bytes
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
task:
only_if: $CIRRUS_TAG == ''
env:
matrix:
- RELEASEVER: 6
- RELEASEVER: 7
name: el$RELEASEVER
container:
image: centos:$RELEASEVER
cpu: 4
macros_script: |
cat > $HOME/.rpmmacros << EOF
%_sourcedir $PWD
%_specdir $PWD
%dist .el$RELEASEVER.ius
%vendor IUS
EOF
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 $CIRRUS_REPO_NAME.spec
builddep_script: yum-builddep --assumeyes $HOME/rpmbuild/SRPMS/$CIRRUS_REPO_NAME-*.src.rpm
rpm_script: rpmbuild -bb $CIRRUS_REPO_NAME.spec
gather_script:
- mv --verbose $HOME/rpmbuild/SRPMS/*.src.rpm .
- mv --verbose $HOME/rpmbuild/RPMS/*/*.rpm .
results_artifacts:
path: '*.rpm'