[PATCH obmc-console 1/2] Add travis CI configuration

OpenBMC Patches openbmc-patches at stwcx.xyz
Fri Mar 18 17:30:27 AEDT 2016


From: Joel Stanley <joel at jms.id.au>

Just builds with clang 3.8 and gcc 5.3 for x86.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 .travis.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..c58cbf6
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,20 @@
+language: c
+
+sudo: required
+dist: trusty
+
+compiler:
+        - clang
+        - gcc
+
+install:
+        - sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
+        - sudo apt-add-repository -y ppa:h-rayflood/llvm
+        - sudo apt-get update && sudo apt-get install -yy gcc-5 clang-3.6
+        - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 50
+        - sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 50
+        - gcc --version
+        - clang --version
+
+script:
+        - autoreconf -i && ./configure && make
-- 
2.7.1




More information about the openbmc mailing list