From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
Jason Gunthorpe
<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH rdma-core V1 1/2] travis: Simplify travis config
Date: Mon, 30 Jan 2017 08:23:15 +0200 [thread overview]
Message-ID: <20170130062316.16268-2-leon@kernel.org> (raw)
In-Reply-To: <20170130062316.16268-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Move travis build instructions into separate file.
Signed-off-by: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
.travis.yml | 25 +------------------------
buildlib/travis-build | 32 ++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 24 deletions(-)
create mode 100755 buildlib/travis-build
diff --git a/.travis.yml b/.travis.yml
index 06443530..c4fa1985 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -36,27 +36,4 @@ addons:
- lib32gcc-6-dev
script:
- - mkdir build build-clang build32 build-no-dma
- - cd build
- # The goal is warning free compile on latest gcc.
- - CC=gcc-6 CFLAGS=-Werror cmake -GNinja ..
- - ninja
-
- # .. and latest clang
- - cd ../build-clang
- - CC=clang-3.9 CFLAGS=-Werror cmake -GNinja ..
- - ninja
-
- # 32 bit build
- - cd ../build32
- # travis's trusty is not configured in a way that enables all 32 bit
- # packages. We could fix this with some sudo stuff.. For now turn off libnl
- - CC=gcc-6 CFLAGS="-Werror -m32" cmake -GNinja .. -DENABLE_RESOLVE_NEIGH=0
- - ninja
-
- # Test with coherent DMA mode disabled (ie as would be on ARM32, etc)
- - cd ../build-clang
- - echo "#error Fail" >> ../libibverbs/arch.h
- - rm CMakeCache.txt
- - CC=clang-3.9 CFLAGS=-Werror cmake -GNinja ..
- - ninja
+ - buildlib/travis-build
diff --git a/buildlib/travis-build b/buildlib/travis-build
new file mode 100755
index 00000000..5fa037bd
--- /dev/null
+++ b/buildlib/travis-build
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# Stop on error
+set -e
+# Echo all commands to Travis log
+set -x
+
+mkdir build build-clang build32 build-no-dma
+cd build
+# The goal is warning free compile on latest gcc.
+CC=gcc-6 CFLAGS=-Werror cmake -GNinja ..
+ninja
+
+# .. and latest clang
+cd ../build-clang
+CC=clang-3.9 CFLAGS=-Werror cmake -GNinja ..
+ninja
+
+# 32 bit build
+cd ../build32
+# travis's trusty is not configured in a way that enables all 32 bit
+# packages. We could fix this with some sudo stuff.. For now turn off libnl
+CC=gcc-6 CFLAGS="-Werror -m32" cmake -GNinja .. -DENABLE_RESOLVE_NEIGH=0
+ninja
+
+# Test with coherent DMA mode disabled (ie as would be on ARM32, etc)
+cd ../build-clang
+echo "#error Fail" >> ../libibverbs/arch.h
+rm CMakeCache.txt
+CC=clang-3.9 CFLAGS=-Werror cmake -GNinja ..
+ninja
+cd ..
--
2.11.0
--
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-01-30 6:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-30 6:23 [PATCH rdma-core V1 0/2] Create semi-automatic release process Leon Romanovsky
[not found] ` <20170130062316.16268-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-01-30 6:23 ` Leon Romanovsky [this message]
2017-01-30 6:23 ` [PATCH rdma-core V1 2/2] travis: Upload assets to github release Leon Romanovsky
[not found] ` <20170130062316.16268-3-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-01-30 17:09 ` Jason Gunthorpe
[not found] ` <20170130170956.GC29502-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-01-30 20:19 ` Leon Romanovsky
[not found] ` <20170130201953.GM6005-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-01-30 21:16 ` Jason Gunthorpe
[not found] ` <20170130211658.GC27111-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-01-31 8:57 ` 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=20170130062316.16268-2-leon@kernel.org \
--to=leon-dgejt+ai2ygdnm+yrofe0a@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 \
/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