All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] .travis.yml: build u-boot on travis-ci
@ 2014-11-05 13:38 Roger Meier
  2014-11-05 15:10 ` Meier, Roger
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Roger Meier @ 2014-11-05 13:38 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Roger Meier <r.meier@siemens.com>
---
 .travis.yml |   86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 86 insertions(+)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..027aff2
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,86 @@
+# Copyright Roger Meier <r.meier@siemens.com>
+# SPDX-License-Identifier:	GPL-2.0+
+
+# build U-Boot on Travis CI - https://travis-ci.org/
+
+language: c
+
+cache:
+ - apt
+
+install:
+ - sudo apt-get install -qq cppcheck sloccount sparse bc device-tree-compiler gcc-arm-linux-gnueabi
+
+env:
+  global:
+    - BUILD_DIR=build
+    - DOWNLOAD_URL=""
+    - INSTALL_CMD=""
+    - CROSS_COMPILE=""
+    - HOSTCC  = "cc"
+    - HOSTCXX = "c++"
+
+before_script:
+ - if [[ "$DOWNLOAD_URL" != "" ]]; then wget $DOWNLOAD_URL ; fi
+ - if [[ "$INSTALL_CMD" != "" ]]; then $INSTALL_CMD ; fi
+
+script:
+ - export BUILD_NCPUS="`grep processor /proc/cpuinfo | wc -l`"
+ - echo "BUILD on" $BUILD_NCPUS "cpu's"
+ - echo $TEST_CMD && $TEST_CMD
+
+matrix:
+  include:
+# arm and powerpc have too many boards for th 50min time limit
+# so we need to build by vendor
+    - env:
+        - TEST_CMD="./MAKEALL -a arm -v atmel"
+          CROSS_COMPILE="arm-linux-gnueabi-"
+    - env:
+        - TEST_CMD="./MAKEALL -a arm -v denx"
+          CROSS_COMPILE="arm-linux-gnueabi-"
+    - env:
+        - TEST_CMD="./MAKEALL -a arm -v freescale"
+          CROSS_COMPILE="arm-linux-gnueabi-"
+    - env:
+        - TEST_CMD="./MAKEALL -a arm -v siemens"
+          CROSS_COMPILE="arm-linux-gnueabi-"
+    - env:
+        - TEST_CMD="./MAKEALL -a arm -v ti"
+          CROSS_COMPILE="arm-linux-gnueabi-"
+    - env:
+        - TEST_CMD="./MAKEALL -a x86"
+        - HOSTCC  = "gcc"
+        - HOSTCXX  = "g++"
+    - env:
+        - TEST_CMD="./MAKEALL -a x86"
+        - HOSTCC  = "clang"
+        - HOSTCXX  = "clang++"
+    - env:
+        - TEST_CMD="./MAKEALL -a powerpc -v freescale"
+          CROSS_COMPILE="/opt/eldk-5.4/powerpc/sysroots/i686-eldk-linux/usr/bin/powerpc-linux/powerpc-"
+          DOWNLOAD_URL="ftp://ftp.denx.de/pub/eldk/5.4/targets/powerpc/eldk-eglibc-i686-powerpc-toolchain-gmae-5.4.sh"
+          INSTALL_CMD="sh eldk-eglibc-i686-powerpc-toolchain-gmae-5.4.sh -y"
+    - env:
+        - TEST_CMD="./MAKEALL -a mips"
+          CROSS_COMPILE="/opt/eldk-5.4/mips/sysroots/i686-eldk-linux/usr/bin/mips32-linux/mips-linux-"
+          DOWNLOAD_URL="ftp://ftp.denx.de/pub/eldk/5.4/targets/mips/eldk-eglibc-i686-mips-toolchain-gmae-5.4.sh"
+          INSTALL_CMD="sh eldk-eglibc-i686-mips-toolchain-gmae-5.4.sh -y"
+    - env:
+        - TEST_CMD="./MAKEALL -a arm -v denx -v siemens"
+          CROSS_COMPILE="/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/bin/armv7ahf-vfp-neon-linux-gnueabi/arm-linux-gnueabi-"
+          DOWNLOAD_URL="ftp://ftp.denx.de/pub/eldk/5.4/targets/armv7a-hf/eldk-eglibc-i686-arm-toolchain-gmae-5.4.sh"
+          INSTALL_CMD="sh eldk-eglibc-i686-arm-toolchain-gmae-5.4.sh -y"
+    - env:
+        - TEST_CMD="cppcheck --force --quiet ."
+    - env:
+        - TEST_CMD="grep -r TODO *"
+    - env:
+        - TEST_CMD="grep -r FIXME *"
+    - env:
+        - TEST_CMD="grep -r HACK *"
+    - env:
+        - TEST_CMD="sloccount ."
+
+notifications:
+  email: false
-- 
1.7.10.4

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

end of thread, other threads:[~2015-01-15 14:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-05 13:38 [U-Boot] [PATCH] .travis.yml: build u-boot on travis-ci Roger Meier
2014-11-05 15:10 ` Meier, Roger
2014-11-05 15:51   ` Tom Rini
2014-11-05 17:16     ` Meier, Roger
2014-11-05 16:57 ` Wolfgang Denk
2014-11-05 17:25 ` Daniel Schwierzeck
2014-11-14 13:58 ` [U-Boot] [PATCH v2] " Roger Meier
2014-11-16 11:05   ` Andreas Färber
2014-11-18 10:19     ` Meier, Roger
2014-11-19  6:07   ` [U-Boot] [PATCH v3] " Roger Meier
2014-11-19  6:31     ` Wolfgang Denk
2014-11-19  6:40     ` Wolfgang Denk
2014-11-19 14:26 ` [U-Boot] [PATCH v4] " Roger Meier
2015-01-15 14:57   ` [U-Boot] [U-Boot,v4] " Tom Rini

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.