summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <aega@med.umich.edu>2012-05-24 16:01:32 -0400
committerAlan Antonuk <aega@med.umich.edu>2012-05-24 16:07:03 -0400
commita93761a5b8ef16ab8faca459a6f47b4bbc79279e (patch)
tree90d5885d40f26622365c4fc3121ada0a8abd6658
parent09cdaf8ce729b99c134c5a01ad7ab081fa7d5b8d (diff)
downloadrabbitmq-c-github-ask-travis-ci.tar.gz
Adding travis-ci integrationtravis-ci
-rw-r--r--.travis.yml25
-rw-r--r--README.md2
2 files changed, 27 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..66b40e2
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,25 @@
+# Travis-CI Build for rabbitmq-c
+# see travis-ci.org for details
+
+# As CMake is not officially supported we use erlang VMs
+language: erlang
+
+# Settings to try
+env:
+ - OPTIONS="-DBUILD_SHARED_LIBS=ON"
+ - OPTIONS="-DBUILD_SHARED_LIBS=OFF"
+
+# Make sure CMake is installed
+install:
+ - sudo apt-get install cmake libpopt-dev xmlto
+
+# Run the Build script
+script:
+ - mkdir _build
+ - cd _build
+ - cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON -DBUILD_TOOLS=ON -DBUILD_TOOLS_DOCS=ON $OPTIONS
+ - cmake --build . --target install
+
+# Run Tests
+after_script:
+ - ctest -V .
diff --git a/README.md b/README.md
index caed1e6..4166ef8 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# RabbitMQ C AMQP client library
+[![Build Status](https://secure.travis-ci.org/alanxz/rabbitmq-c.png?branch=master)](http://travis-ci.org/alanxz/rabbitmq-c)
+
## Introduction
This is a C-language AMQP client library for use with AMQP servers