浏览代码

Merge branch 'dev' into draft_FIFO

nico 8 年之前
父节点
当前提交
4acb2155e5
共有 3 个文件被更改,包括 14 次插入8 次删除
  1. 8 2
      .travis.yml
  2. 4 4
      README.md
  3. 2 2
      Tests/test_brain_loader.py

+ 8 - 2
.travis.yml

@@ -19,11 +19,17 @@ before_install:
 - wget https://bootstrap.pypa.io/get-pip.py
 - wget https://bootstrap.pypa.io/get-pip.py
 - sudo python get-pip.py
 - sudo python get-pip.py
 
 
-install: "pip install -r install/files/python_requirements.txt"
+install:
+  - pip install -r install/files/python_requirements.txt
+  - pip install coveralls
 
 
 # command to run tests
 # command to run tests
 script:
 script:
-  - pytest
+#  - pytest
   - docker run -it --rm kalliope-ubuntu1604
   - docker run -it --rm kalliope-ubuntu1604
   - docker run -it --rm kalliope-debian8
   - docker run -it --rm kalliope-debian8
+  - coverage run --source=kalliope -m unittest discover
+
+after_success:
+  coveralls
 
 

+ 4 - 4
README.md

@@ -1,10 +1,10 @@
-# Kalliope
-
 [![Build Status](https://travis-ci.org/kalliope-project/kalliope.svg)](https://travis-ci.org/kalliope-project/kalliope)
 [![Build Status](https://travis-ci.org/kalliope-project/kalliope.svg)](https://travis-ci.org/kalliope-project/kalliope)
+[![Coverage Status](https://coveralls.io/repos/github/kalliope-project/kalliope/badge.svg)](https://coveralls.io/github/kalliope-project/kalliope)
 [![Gitter](https://badges.gitter.im/gitterHQ/gitter.svg)](https://gitter.im/kalliope-project/Lobby)
 [![Gitter](https://badges.gitter.im/gitterHQ/gitter.svg)](https://gitter.im/kalliope-project/Lobby)
 
 
-
-![logo](images/Kalliope_logo_large.png)
+<p align="center">
+    <img src="images/Kalliope_logo_large.png">
+</p>
 
 
 Kalliope is a modular always-on voice controlled personal assistant designed for home automation.
 Kalliope is a modular always-on voice controlled personal assistant designed for home automation.
 Kalliope is based on audio input recognition, so it recognize an order pronounced by the user and then execute actions attached to the order.
 Kalliope is based on audio input recognition, so it recognize an order pronounced by the user and then execute actions attached to the order.

+ 2 - 2
Tests/test_brain_loader.py

@@ -17,7 +17,7 @@ class TestBrainLoader(unittest.TestCase):
 
 
     def setUp(self):
     def setUp(self):
         # be sure the brain haven't been instantiated before
         # be sure the brain haven't been instantiated before
-        Singleton._instances = {}
+        Singleton._instances = dict()
         if "/Tests" in os.getcwd():
         if "/Tests" in os.getcwd():
             self.brain_to_test = os.getcwd() + os.sep + "brains/brain_test.yml"
             self.brain_to_test = os.getcwd() + os.sep + "brains/brain_test.yml"
         else:
         else:
@@ -40,7 +40,7 @@ class TestBrainLoader(unittest.TestCase):
         ]
         ]
 
 
     def tearDown(self):
     def tearDown(self):
-        Singleton._instances = {}
+        Singleton._instances = dict()
 
 
     def test_get_yaml_config(self):
     def test_get_yaml_config(self):
         """
         """