Commit 7d9a225a69bd1f4531efb4985f8c5acdc29b9056

Francois Perrad 2015-11-18T20:24:58

add Travis CI

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..1ed1152
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,15 @@
+language: c
+compiler:
+  - gcc
+
+script:
+  - make
+  - make test
+  - make mtest
+  - ./mtest/mtest 666666 | ./test > test.log
+  - head -n 5 test.log
+  - tail -n 2 test.log
+
+branches:
+  only:
+    - develop
diff --git a/README.md b/README.md
index 7c037ae..502f553 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+[![Build Status](https://travis-ci.org/fperrad/libtommath.png?branch=develop)](https://travis-ci.org/fperrad/libtommath)
+
 This is the git repository for [LibTomMath](http://www.libtom.org/), a free open source portable number theoretic multiple-precision integer (MPI) library written entirely in C.
 
 The `develop` branch contains the in-development version. Stable releases are tagged.