-
Notifications
You must be signed in to change notification settings - Fork 9
/
.cirrus.yml
28 lines (28 loc) · 1.05 KB
/
.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:
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
ius_script: yum --assumeyes install https://repo.ius.io/ius-release-el$(rpm -E %rhel).rpm
repos_script: yum-config-manager --enable ius-testing
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'