From: Jan Kiszka <[email protected]>

Build both x86_64 and i386 variant and run the tests.

As trusty, the default Ubuntu version of Travis, contains a too old
libcmocka, pull it from xenial.

Signed-off-by: Jan Kiszka <[email protected]>
---
 .travis.yml | 35 +++++++++++++++++++++++++++++++++++
 README.md   |  7 ++++++-
 2 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..df4a0db
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,35 @@
+#
+# EFI Boot Guard
+#
+# Copyright (c) Siemens AG, 2017
+#
+# Authors:
+#  Jan Kiszka <[email protected]>
+#
+# This work is licensed under the terms of the GNU GPL, version 2.  See
+# the COPYING file in the top-level directory.
+#
+
+language: c
+
+compiler:
+  - gcc
+
+sudo: required
+
+install:
+  - sudo apt-get install gcc-multilib gnu-efi libpci-dev libz-dev:i386
+  - sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu xenial 
universe'
+  - sudo apt-get update -qq
+  - sudo apt-get install --no-install-recommends --target-release xenial 
libcmocka-dev
+
+script:
+  - autoreconf -fi
+  - mkdir build-x86_64 && cd build-x86_64
+  - ../configure
+  - make check
+  # Switch to 32-bit (libcmocka-dev can only be installed in one variant)
+  - sudo apt-get install --no-install-recommends --target-release xenial 
libcmocka-dev:i386
+  - mkdir ../build-i586 && cd ../build-i586
+  - ../configure --with-gnuefi-lib-dir=/usr/lib32 CFLAGS=-m32 
host_alias=i586-linux
+  - make check
diff --git a/README.md b/README.md
index d29151f..8c859a8 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,12 @@ Archive:
 For sending patches, please refer to the mailing list and `CONTRIBUTING.md` in
 the source tree.
 
+Continuous integration:
+* [Travis CI](https://travis-ci.org/siemens/efibootguard)
+* Status:
+  * ![](https://travis-ci.org/siemens/efibootguard.svg?branch=master) on master
+  * ![](https://travis-ci.org/siemens/efibootguard.svg?branch=next) on next
+
 ## Watchdog support ##
 
 The following watchdog drivers are implemented:
@@ -43,4 +49,3 @@ See `Installation And Usage` for further information.
 * [Compilation Instructions](docs/COMPILE.md)
 * [Installation And Usage](docs/USAGE.md)
 * [Future Work](docs/TODO.md)
-
-- 
2.12.3

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/65b5bc1169399cb3c9f35ee962d6871c33f6554a.1506284412.git.jan.kiszka%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to