From cb6332a188273df2085f091724ea2794e160c717 Mon Sep 17 00:00:00 2001 From: Thiago da Silva Date: Tue, 22 Apr 2014 14:15:02 -0400 Subject: [PATCH 1/5] adding travis ci testing adding .travis.yml file to enable unit testing run by travis Signed-off-by: Thiago da Silva --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5cbb41a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: python +python: + - "2.6" + - "2.7" + +# command to install dependencies +install: "pip install tox nose" +# command to run tests +script: tox -e py27 From 37835fdf72a1ed7e8876fdafaf8f1f4f63a5e284 Mon Sep 17 00:00:00 2001 From: Thiago da Silva Date: Tue, 22 Apr 2014 14:24:37 -0400 Subject: [PATCH 2/5] trigger travis build Signed-off-by: Thiago da Silva --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 5cbb41a..f39df3c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,5 +5,6 @@ python: # command to install dependencies install: "pip install tox nose" + # command to run tests script: tox -e py27 From 809309618efe5d7edcc3382fb9483229ac025fdb Mon Sep 17 00:00:00 2001 From: Thiago da Silva Date: Tue, 22 Apr 2014 14:29:46 -0400 Subject: [PATCH 3/5] adding py26 unit testing to travis Signed-off-by: Thiago da Silva --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f39df3c..06cc2d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,6 @@ python: install: "pip install tox nose" # command to run tests -script: tox -e py27 +script: + - tox -e py26 + - tox -e py27 From c582669ded81967c6cb3ab35b4920ab7e9f7cd70 Mon Sep 17 00:00:00 2001 From: Thiago da Silva Date: Tue, 22 Apr 2014 14:35:28 -0400 Subject: [PATCH 4/5] adding travis status badge to README Signed-off-by: Thiago da Silva --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d0b3d4d..0663ffa 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/thiagol11/swiftonfile.svg?branch=master)](https://travis-ci.org/thiagol11/swiftonfile) + # Gluster For Swift Integrating GlusterFS as the back-end to OpenStack Swift implementation. This is a component of the Unified File and Object (UFO) From 3ddd952fc626ce78555107225aabd1bb31e4e198 Mon Sep 17 00:00:00 2001 From: Thiago da Silva Date: Tue, 22 Apr 2014 14:41:09 -0400 Subject: [PATCH 5/5] fixing travis file to run correct unit test Signed-off-by: Thiago da Silva --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 06cc2d2..cdc78f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,5 +8,5 @@ install: "pip install tox nose" # command to run tests script: - - tox -e py26 - - tox -e py27 + - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then tox -e py26; fi + - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then tox -e py27; fi