From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
Jason Gunthorpe
<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Benjamin Drung
<benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>,
Nicolas Morey-Chaisemartin
<nmoreychaisemartin-l3A5Bk7waGM@public.gmane.org>,
Alaa Hleihel <alaa-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: [PATCH rdma-core 3/5] travis: Add RedHat and SuSE rpmbuild support
Date: Thu, 2 Nov 2017 18:55:54 +0200 [thread overview]
Message-ID: <20171102165556.22105-4-leon@kernel.org> (raw)
In-Reply-To: <20171102165556.22105-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
From: Alaa Hleihel <alaa-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Provide a new script for testing rpmbuild under RedHat and SuSE
environments which validates both of the suse/rdma-core.spec and
redhat/rdma-core.spec specfiles.
The script performs the RPM package build test by utilizing the existing
cbuild tool.
Signed-off-by: Alaa Hleihel <alaa-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Signed-off-by: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
.travis.yml | 4 ++++
buildlib/package-build-test | 15 +++++++++++++++
2 files changed, 19 insertions(+)
create mode 100755 buildlib/package-build-test
diff --git a/.travis.yml b/.travis.yml
index c190a241..4d7b0cc0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -42,6 +42,9 @@ addons:
- gcc-multilib
- lib32gcc-7-dev
+service:
+ - docker
+
before_script:
- export LATEST_GCC_LINARO_URL=`wget -qO - https://releases.linaro.org/components/toolchain/binaries/latest/aarch64-linux-gnu/ | grep -o '<a href=['"'"'"].*gcc-linaro-.*x86_64_aarch64-linux-gnu.tar.xz['"'"'"]' | sed -e 's/^<a href=["'"'"']//' -e 's/["'"'"']$//'`
- export LATEST_GCC_LINARO_TAR=`basename $LATEST_GCC_LINARO_URL`
@@ -51,6 +54,7 @@ before_script:
script:
- buildlib/travis-build
- buildlib/travis-checkpatch
+ - buildlib/package-build-test
- buildlib/github-release
deploy:
# Deploy assets to Github releases
diff --git a/buildlib/package-build-test b/buildlib/package-build-test
new file mode 100755
index 00000000..d767f61f
--- /dev/null
+++ b/buildlib/package-build-test
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# fail on errors
+set -e
+# be verbose
+set -x
+
+for OS in centos7 opensuse-42.2
+do
+ echo
+ echo "Checking package build for ${OS} ...."
+ echo
+ buildlib/cbuild build-images ${OS}
+ buildlib/cbuild pkg ${OS}
+done
--
2.14.2
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-11-02 16:55 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-02 16:55 [PATCH rdma-core 0/5] Perform package tests in Travis CI Leon Romanovsky
[not found] ` <20171102165556.22105-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-11-02 16:55 ` [PATCH rdma-core 1/5] cbuild: Add udev dependency to package list of SuSE Leap Leon Romanovsky
[not found] ` <20171102165556.22105-2-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-11-02 17:30 ` Nicolas Morey-Chaisemartin
2017-11-02 17:32 ` Nicolas Morey-Chaisemartin
[not found] ` <3a06c93f-aa0f-93fa-1b74-af6388051f89-l3A5Bk7waGM@public.gmane.org>
2017-11-02 17:42 ` Leon Romanovsky
[not found] ` <20171102174220.GD16127-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-11-02 18:04 ` Nicolas Morey-Chaisemartin
[not found] ` <b2493da4-396e-5d24-ffa5-2fcccb9ee85c-l3A5Bk7waGM@public.gmane.org>
2017-11-02 18:32 ` Leon Romanovsky
[not found] ` <20171102183257.GI16127-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-11-05 8:13 ` Alaa Hleihel
[not found] ` <76d45899-f1ec-bbd1-e0dd-799e1fa4a400-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2017-11-06 2:05 ` Jason Gunthorpe
[not found] ` <20171106020518.GC12187-uk2M96/98Pc@public.gmane.org>
2017-11-06 7:58 ` Alaa Hleihel
[not found] ` <aae35c17-8135-9e4b-8ff8-f92558316f95-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2017-11-06 9:15 ` Nicolas Morey-Chaisemartin
[not found] ` <c9ecd165-c670-c58b-6d7b-006140fc15af-l3A5Bk7waGM@public.gmane.org>
2017-11-06 16:57 ` Jason Gunthorpe
2017-11-02 16:55 ` [PATCH rdma-core 2/5] cbuild: Properly create tarball for SuSE Leon Romanovsky
[not found] ` <20171102165556.22105-3-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-11-02 17:17 ` Jason Gunthorpe
[not found] ` <20171102171738.GP18874-uk2M96/98Pc@public.gmane.org>
2017-11-02 17:32 ` Nicolas Morey-Chaisemartin
2017-11-02 17:57 ` Leon Romanovsky
[not found] ` <20171102175735.GE16127-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-11-02 18:12 ` Jason Gunthorpe
[not found] ` <20171102181217.GS18874-uk2M96/98Pc@public.gmane.org>
2017-11-02 18:25 ` Leon Romanovsky
[not found] ` <20171102182526.GG16127-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-11-05 8:19 ` Alaa Hleihel
2017-11-02 16:55 ` Leon Romanovsky [this message]
[not found] ` <20171102165556.22105-4-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-11-02 17:31 ` [PATCH rdma-core 3/5] travis: Add RedHat and SuSE rpmbuild support Jason Gunthorpe
[not found] ` <20171102173123.GQ18874-uk2M96/98Pc@public.gmane.org>
2017-11-02 17:34 ` Nicolas Morey-Chaisemartin
[not found] ` <8a65f42d-01d4-6c4a-1bed-b1989cdb9e70-l3A5Bk7waGM@public.gmane.org>
2017-11-02 19:44 ` Jason Gunthorpe
[not found] ` <20171102194420.GT18874-uk2M96/98Pc@public.gmane.org>
2017-11-05 9:19 ` Alaa Hleihel
2017-11-02 16:55 ` [PATCH rdma-core 4/5] buildlib/cbuild: Add Ubuntu artful Leon Romanovsky
2017-11-02 16:55 ` [PATCH rdma-core 5/5] travis: Test Debian packaging under Artful container Leon Romanovsky
[not found] ` <20171102165556.22105-6-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-11-02 17:05 ` Jason Gunthorpe
[not found] ` <20171102170554.GO18874-uk2M96/98Pc@public.gmane.org>
2017-11-02 17:18 ` Leon Romanovsky
2017-11-02 17:32 ` Leon Romanovsky
[not found] ` <20171102173255.GC16127-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-11-02 17:55 ` Jason Gunthorpe
[not found] ` <20171102175522.GR18874-uk2M96/98Pc@public.gmane.org>
2017-11-05 10:00 ` Alaa Hleihel
[not found] ` <2e2d65c2-845e-13ad-1022-a859b2fef6a7-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2017-11-05 13:30 ` Alaa Hleihel
[not found] ` <f6a250cd-dd4f-5dbe-4b1d-53f2b1f87b32-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2017-11-06 2:14 ` Jason Gunthorpe
2017-11-02 21:18 ` [PATCH rdma-core 0/5] Perform package tests in Travis CI Jason Gunthorpe
[not found] ` <20171102211851.GV18874-uk2M96/98Pc@public.gmane.org>
2017-11-05 7:17 ` Leon Romanovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171102165556.22105-4-leon@kernel.org \
--to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=alaa-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=nmoreychaisemartin-l3A5Bk7waGM@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox