aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Holmes <mike.holmes@linaro.org>2016-10-21 14:40:18 -0400
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-11-07 16:34:50 +0300
commitbe4c103d0eeaf41422276796829a2191dc71258d (patch)
tree74c5ea34fb925142563f81bf27dc8b1597c7045d
parentf09c70ad34d98c5f834868c04a72733615cef88a (diff)
add travis.yml for gitub automation
allows pushes to a github clone of ODP to automatically trigger CI builds Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-by: Brian Brooks <brian.brooks@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r--.travis.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..0d1add3a2
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,35 @@
+# Copyright (c) 2016, Linaro Limited
+# All rights reserved.
+# SPDX-License-Identifier: BSD-3-Clause
+
+
+
+language: c
+compiler: clang
+sudo: required
+
+before_install:
+ - sudo apt-get -qq update
+ - sudo apt-get install automake autoconf libtool libssl-dev graphviz mscgen doxygen
+ - gem install asciidoctor
+
+# Install cunit for the validation tests because distro version is too old and fails C99 compile
+ - export CUNIT_VERSION=2.1-3
+ - curl -sSOL http://sourceforge.net/projects/cunit/files/CUnit/${CUNIT_VERSION}/CUnit-${CUNIT_VERSION}.tar.bz2
+ - tar -jxf *.bz2
+ - cd CUnit*
+ - ./bootstrap
+ - ./configure --enable-debug --enable-automated --enable-basic --enable-console --enable-examples --enable-test
+ - make
+ - sudo make install
+ - cd ..
+ - export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
+
+install:
+ - ./bootstrap
+
+script:
+ - ./configure --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example
+ - make check
+ - make doxygen-doc
+ - make distcheck