From f5a2514c941089d3c1dc718f9d2a5e417d2665a4 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 25 Nov 2013 13:14:55 -0500 Subject: [PATCH] Add travis-ci configuration file Contributed-by: Zifei Tong Signed-off-by: David Goulet --- .travis.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..4b462e00f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,39 @@ +env: + # You can also install binary packages instead to speed-up building + - URCU_REPO=git://git.lttng.org/userspace-rcu.git LTTNG_UST_REPO=git://git.lttng.org/lttng-ust.git BABELTRACE_REPO=git://git.efficios.com/babeltrace.git +language: c +compiler: + - gcc + - clang +before_install: + - git clone $URCU_REPO ../urcu + - git clone $LTTNG_UST_REPO ../lttng-ust + - git clone $BABELTRACE_REPO ../babeltrace +install: + - sudo apt-get install -qq libpopt-dev uuid-dev + - pushd ../urcu && ./bootstrap && ./configure && make && sudo make install && popd + - pushd ../lttng-ust && ./bootstrap && ./configure && make && sudo make install && popd + - pushd ../babeltrace && ./bootstrap && ./configure && make && sudo make install && popd + - sudo ldconfig + # Workaround for travis-ci/travis-cookbooks#155, https://github.com/travis-ci/travis-cookbooks/issues/155 + - sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm +script: + - ./bootstrap + - ./configure + - make + - make check +branches: + only: + - master + - travis-ci + - /^bug*/ + +#notifications: +# recipients: +# - test@test.com +# email: +# on_success: change +# on_failure: always +# irc: +# channels: +# - "irc.oftc.net#lttng" -- 2.34.1