Add travis-ci configuration file
authorDavid Goulet <dgoulet@efficios.com>
Mon, 25 Nov 2013 18:14:55 +0000 (13:14 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 25 Nov 2013 18:14:57 +0000 (13:14 -0500)
Contributed-by: Zifei Tong <soariez@gmail.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..4b462e0
--- /dev/null
@@ -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"
This page took 0.027497 seconds and 4 git commands to generate.