From 231ab6216b0cc5257971f93cb48f455875001869 Mon Sep 17 00:00:00 2001 From: Sergey Tsaplin Date: Mon, 1 Aug 2016 14:16:54 +0500 Subject: [PATCH 1/2] Travis integration (Add .travis.yml) --- .travis.yml | 10 ++++++++++ README.md | 1 + 2 files changed, 11 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..344c3d5c3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: python +python: + - "2.6" + - "2.7" + - "3.2" + - "3.3" + - "3.4" + - "3.5" +install: "pip install pytest" +script: py.test --doctest-modules \ No newline at end of file diff --git a/README.md b/README.md index 8fcf1a656..58dcc3860 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Build Status](https://travis-ci.org/TheAlgorithms/Python.svg)](https://travis-ci.org/TheAlgorithms/Python) # The Algorithms - Python ### All algorithms implemented in Python (for education) From de86950e87fcc3f10346626c89e93ee04913d3ed Mon Sep 17 00:00:00 2001 From: Sergey Tsaplin Date: Mon, 1 Aug 2016 18:09:26 +0500 Subject: [PATCH 2/2] Add coverege --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 344c3d5c3..59517cf45 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,5 +6,5 @@ python: - "3.3" - "3.4" - "3.5" -install: "pip install pytest" -script: py.test --doctest-modules \ No newline at end of file +install: "pip install pytest pytest-cov" +script: py.test --doctest-modules --cov ./ \ No newline at end of file