All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] travis: add initial Travis CI script to do builds
@ 2016-02-05 14:48 Doug Goldstein
  2016-02-05 15:09 ` Wei Liu
  2016-02-05 16:33 ` Ian Campbell
  0 siblings, 2 replies; 6+ messages in thread
From: Doug Goldstein @ 2016-02-05 14:48 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>
---

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.

If you're curious to see the output of these tests come to #xentest on
Freenode.

---
 .travis.yml | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..9020f16
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,64 @@
+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: clang
+          env: XEN_TARGET_ARCH=x86_64 clang=y
+        - compiler: clang
+          env: XEN_TARGET_ARCH=x86_64 COMPILER=clang-3.8 clang=y
+        - compiler: gcc
+          env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf-
+        - compiler: gcc
+          env: XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
+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 )
+notifications:
+      irc:
+          - "chat.freenode.net#xentest"
-- 
2.4.10

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

end of thread, other threads:[~2016-02-05 16:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-05 14:48 [PATCH] travis: add initial Travis CI script to do builds Doug Goldstein
2016-02-05 15:09 ` Wei Liu
2016-02-05 15:19   ` Doug Goldstein
2016-02-05 15:24     ` Wei Liu
2016-02-05 16:33 ` Ian Campbell
2016-02-05 16:41   ` Doug Goldstein

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.