xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] travis: add initial Travis CI script to do builds
@ 2016-02-08  2:45 Doug Goldstein
  2016-02-09 17:09 ` Andrew Cooper
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Doug Goldstein @ 2016-02-08  2:45 UTC (permalink / raw)
  To: xen-devel
  Cc: Keir Fraser, Ian Campbell, Tim Deegan, Doug Goldstein,
	Jan Beulich, Ian Jackson

This is just suppose to do a simple compile test on Travis CI. Currently
due to linux86 (bcc/bin86/dev86) not being whitelisted the tools cannot
be built.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
---
change since v3:
- add debug builds
change since v2:
- drop IRC notification

So this will work great if we get a regular cronjob or a post-receive hook
to push to GitHub (https://github.com/xen-project/xen) since Travis CI provides
free integration with public repositories. So an example run of this is
available at https://travis-ci.org/cardoe/xen/builds/107246160 if this gets
merged I will setup a xen-project space under Travis for us. Currently its
under my namespace because this file only exists in my branches.

The goal here is not to replace osstest by any means but to augment it by
providing some easy to do build tests on every revision and reporting back. It
should be possible in the future to potentially tie this into osstest to
allow this to build and if the tree for some reason failed to build not kick
off a test flight on osstest. Just some thoughts, I know I'm getting a bit
ahead of myself.

Other future tweaks I've got are some simple dom0 boot tests using qemu to
boot Xen and then boot a kernel and see that it came up. I've also got some
scripts to check the code base for code style consistency using clang-format.
---
 .travis.yml | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..c7227ba
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,73 @@
+language: c
+dist: trusty
+sudo: required
+matrix:
+    allow_failures:
+        - compiler: clang
+    include:
+        - compiler: gcc
+          env: XEN_TARGET_ARCH=x86_64
+        - compiler: gcc
+          env: XEN_TARGET_ARCH=x86_64 COMPILER=gcc-5
+        - compiler: gcc
+          env: XEN_TARGET_ARCH=x86_64 debug=y
+        - compiler: gcc
+          env: XEN_TARGET_ARCH=x86_64 COMPILER=gcc-5 debug=y
+        - compiler: clang
+          env: XEN_TARGET_ARCH=x86_64 clang=y
+        - compiler: clang
+          env: XEN_TARGET_ARCH=x86_64 COMPILER=clang-3.8 clang=y
+        - compiler: clang
+          env: XEN_TARGET_ARCH=x86_64 clang=y debug=y
+        - compiler: clang
+          env: XEN_TARGET_ARCH=x86_64 COMPILER=clang-3.8 clang=y debug=y
+        - compiler: gcc
+          env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf-
+        - compiler: gcc
+          env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf- debug=y
+        - compiler: gcc
+          env: XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
+        - compiler: gcc
+          env: XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- debug=y
+addons:
+    apt:
+        sources:
+            - ubuntu-toolchain-r-test
+            - llvm-toolchain-precise
+        packages:
+            - zlib1g-dev
+            - libncurses5-dev
+            - libssl-dev
+            - python2.7-dev
+            - xorg-dev
+            - uuid-dev
+            - libyajl-dev
+            - libaio-dev
+            - libglib2.0-dev
+            - libpixman-1-dev
+            - pkg-config
+            - bridge-utils
+            - iproute2
+            - flex
+            - bison
+            - gettext
+            - acpica-tools
+            - bin86
+            - bcc
+            - libc6-dev-i386
+            - libnl-3-dev
+            - ocaml-nox
+            - libfindlib-ocaml-dev
+            - markdown
+            - transfig
+            - pandoc
+            - gcc-arm-linux-gnueabihf
+            - gcc-aarch64-linux-gnu
+            - gcc-5
+            - clang-3.8
+before_script:
+    - export CC=${COMPILER:-${CC}}
+    - ${CC} --version
+script:
+    - ( ./configure --disable-tools --disable-stubdom --enable-docs &&
+      make CC="${CROSS_COMPILE}${CC}" HOSTCC="${CC}" dist )
-- 
2.4.10

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] travis: add initial Travis CI script to do builds
  2016-02-08  2:45 [PATCH v3] travis: add initial Travis CI script to do builds Doug Goldstein
@ 2016-02-09 17:09 ` Andrew Cooper
  2016-02-10  0:33   ` Dario Faggioli
  2016-02-12 17:11   ` [PATCH v3] travis: add initial Travis CI script to do builds [and 2 more messages] Ian Jackson
  2016-02-10 15:00 ` [PATCH v3] travis: add initial Travis CI script to do builds Wei Liu
  2016-02-11 17:48 ` Doug Goldstein
  2 siblings, 2 replies; 7+ messages in thread
From: Andrew Cooper @ 2016-02-09 17:09 UTC (permalink / raw)
  To: Doug Goldstein, xen-devel
  Cc: Ian Jackson, Tim Deegan, Keir Fraser, Ian Campbell, Jan Beulich

On 08/02/16 02:45, Doug Goldstein wrote:
> This is just suppose to do a simple compile test on Travis CI. Currently
> due to linux86 (bcc/bin86/dev86) not being whitelisted the tools cannot
> be built.
>
> Signed-off-by: Doug Goldstein <cardoe@cardoe.com>

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>

This will be a massive help for contributes to sanity check their patch
series.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] travis: add initial Travis CI script to do builds
  2016-02-09 17:09 ` Andrew Cooper
@ 2016-02-10  0:33   ` Dario Faggioli
  2016-02-11 17:29     ` Doug Goldstein
  2016-02-12 17:11   ` [PATCH v3] travis: add initial Travis CI script to do builds [and 2 more messages] Ian Jackson
  1 sibling, 1 reply; 7+ messages in thread
From: Dario Faggioli @ 2016-02-10  0:33 UTC (permalink / raw)
  To: Andrew Cooper, Doug Goldstein, xen-devel
  Cc: Tim Deegan, Keir Fraser, Ian Jackson, Ian Campbell, Jan Beulich


[-- Attachment #1.1: Type: text/plain, Size: 1038 bytes --]

On Tue, 2016-02-09 at 17:09 +0000, Andrew Cooper wrote:
> On 08/02/16 02:45, Doug Goldstein wrote:
> > This is just suppose to do a simple compile test on Travis CI.
> > Currently
> > due to linux86 (bcc/bin86/dev86) not being whitelisted the tools
> > cannot
> > be built.
> > 
> > Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
> 
> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
> 
> This will be a massive help for contributes to sanity check their
> patch
> series.
> 
BTW, when all the bits will be in place, a piece of doc (e.g., on the
wiki) explaining how to take advantage of this "massive help" would be
great... E.g., for those people that have managed to survive until now
barely knowing what Travis even is! :-P

Regards,
Dario
-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] travis: add initial Travis CI script to do builds
  2016-02-08  2:45 [PATCH v3] travis: add initial Travis CI script to do builds Doug Goldstein
  2016-02-09 17:09 ` Andrew Cooper
@ 2016-02-10 15:00 ` Wei Liu
  2016-02-11 17:48 ` Doug Goldstein
  2 siblings, 0 replies; 7+ messages in thread
From: Wei Liu @ 2016-02-10 15:00 UTC (permalink / raw)
  To: Doug Goldstein
  Cc: Keir Fraser, Ian Campbell, Tim Deegan, Ian Jackson, xen-devel,
	Jan Beulich, wei.liu2

On Sun, Feb 07, 2016 at 08:45:03PM -0600, Doug Goldstein wrote:
> This is just suppose to do a simple compile test on Travis CI. Currently
> due to linux86 (bcc/bin86/dev86) not being whitelisted the tools cannot
> be built.
> 
> Signed-off-by: Doug Goldstein <cardoe@cardoe.com>

FWIW:

Reviewed-by: Wei Liu <wei.liu2@citrix.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] travis: add initial Travis CI script to do builds
  2016-02-10  0:33   ` Dario Faggioli
@ 2016-02-11 17:29     ` Doug Goldstein
  0 siblings, 0 replies; 7+ messages in thread
From: Doug Goldstein @ 2016-02-11 17:29 UTC (permalink / raw)
  To: Dario Faggioli, Andrew Cooper, xen-devel
  Cc: Tim Deegan, Keir Fraser, Ian Jackson, Ian Campbell, Jan Beulich


[-- Attachment #1.1: Type: text/plain, Size: 945 bytes --]

On 2/9/16 6:33 PM, Dario Faggioli wrote:
> On Tue, 2016-02-09 at 17:09 +0000, Andrew Cooper wrote:
>> On 08/02/16 02:45, Doug Goldstein wrote:
>>> This is just suppose to do a simple compile test on Travis CI.
>>> Currently
>>> due to linux86 (bcc/bin86/dev86) not being whitelisted the tools
>>> cannot
>>> be built.
>>>
>>> Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
>>
>> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
>>
>> This will be a massive help for contributes to sanity check their
>> patch
>> series.
>>
> BTW, when all the bits will be in place, a piece of doc (e.g., on the
> wiki) explaining how to take advantage of this "massive help" would be
> great... E.g., for those people that have managed to survive until now
> barely knowing what Travis even is! :-P
> 
> Regards,
> Dario
> 

Gladly. I just got write permissions to the wiki so I'll get started soon.

-- 
Doug Goldstein


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 959 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] travis: add initial Travis CI script to do builds
  2016-02-08  2:45 [PATCH v3] travis: add initial Travis CI script to do builds Doug Goldstein
  2016-02-09 17:09 ` Andrew Cooper
  2016-02-10 15:00 ` [PATCH v3] travis: add initial Travis CI script to do builds Wei Liu
@ 2016-02-11 17:48 ` Doug Goldstein
  2 siblings, 0 replies; 7+ messages in thread
From: Doug Goldstein @ 2016-02-11 17:48 UTC (permalink / raw)
  To: xen-devel; +Cc: Keir Fraser, Tim Deegan, Ian Jackson, Jan Beulich, Ian Campbell


[-- Attachment #1.1: Type: text/plain, Size: 297 bytes --]

On 2/7/16 8:45 PM, Doug Goldstein wrote:
> This is just suppose to do a simple compile test on Travis CI. Currently
> due to linux86 (bcc/bin86/dev86) not being whitelisted the tools cannot
> be built.
> 
> Signed-off-by: Doug Goldstein <cardoe@cardoe.com>

ping?

-- 
Doug Goldstein


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 959 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v3] travis: add initial Travis CI script to do builds [and 2 more messages]
  2016-02-09 17:09 ` Andrew Cooper
  2016-02-10  0:33   ` Dario Faggioli
@ 2016-02-12 17:11   ` Ian Jackson
  1 sibling, 0 replies; 7+ messages in thread
From: Ian Jackson @ 2016-02-12 17:11 UTC (permalink / raw)
  To: Wei Liu, Andrew Cooper, Doug Goldstein
  Cc: Keir Fraser, Tim Deegan, Ian Campbell, Jan Beulich, xen-devel

Doug Goldstein writes ("[PATCH v3] travis: add initial Travis CI script to do builds"):
> This is just suppose to do a simple compile test on Travis CI. Currently
> due to linux86 (bcc/bin86/dev86) not being whitelisted the tools cannot
> be built.
> 
> Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Andrew Cooper writes ("Re: [Xen-devel] [PATCH v3] travis: add initial Travis CI> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>

Wei Liu writes ("Re: [Xen-devel] [PATCH v3] travis: add initial Travis CI script to do builds"):
> Reviewed-by: Wei Liu <wei.liu2@citrix.com>

Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-02-12 17:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-08  2:45 [PATCH v3] travis: add initial Travis CI script to do builds Doug Goldstein
2016-02-09 17:09 ` Andrew Cooper
2016-02-10  0:33   ` Dario Faggioli
2016-02-11 17:29     ` Doug Goldstein
2016-02-12 17:11   ` [PATCH v3] travis: add initial Travis CI script to do builds [and 2 more messages] Ian Jackson
2016-02-10 15:00 ` [PATCH v3] travis: add initial Travis CI script to do builds Wei Liu
2016-02-11 17:48 ` Doug Goldstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).