Skip to content

Commit

Permalink
Fixes for PPAs and copr
Browse files Browse the repository at this point in the history
©! I, Hugo Landau <hlandau@devever.net>, hereby licence these changes under the
©! licence with SHA256 hash
©! fd80a26fbb3f644af1fa994134446702932968519797227e07a1368dea80f0bc.
  • Loading branch information
hlandau committed Feb 12, 2018
1 parent 6931439 commit 142a638
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ addons:
- lintian
- ncftp
- rpm
- fakeroot
- jq
mariadb: "10.1"

sudo: false
Expand Down
8 changes: 6 additions & 2 deletions .travis/after_success
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,21 @@ for x in $RPMS; do
done
echo travis_fold:end:build-srpm

COPR_CHROOTS="$(curl "https://copr.fedorainfracloud.org/api_2/projects/$COPR_PROJECT_ID/chroots" | jq '.chroots|map(.chroot.name)')"

for srpm in $HOME/rpmbuild/SRPMS/acmetool-*.rpm; do
if [[ $srpm != *nocgo* ]]; then
cat <<END > /tmp/rpm-metadata
{
"project_id": $COPR_PROJECT_ID
"project_id": $COPR_PROJECT_ID,
"chroots": $COPR_CHROOTS
}
END
else
cat <<END > /tmp/rpm-metadata
{
"project_id": $COPR_PROJECT_ID
"project_id": $COPR_PROJECT_ID,
"chroots": $COPR_CHROOTS
}
END
fi
Expand Down

0 comments on commit 142a638

Please sign in to comment.