Fix Travis-CI issue

This commit is contained in:
Alessio Sergi 2013-02-21 17:51:00 +01:00
parent f42cea07ad
commit 31780046c2
6 changed files with 11 additions and 12 deletions

View File

@ -3,6 +3,7 @@ python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
install:
- "pip install psutil"
script: cd ./glances ; python ./unitest.py
- pip install -r requirements.txt --use-mirrors
script: python setup.py test

View File

@ -1,7 +1,6 @@
include README
include COPYING
include AUTHORS
include ChangeLog
include NEWS
include screenshot.png
recursive-include doc *.png

View File

15
glances/unitest.py → glances/tests/test_glances.py Executable file → Normal file
View File

@ -3,11 +3,6 @@
#
# Glances unitary test
#
# Syntax:
# ./unitest.py
# or
# ./unitest.py -v
#
# Copyright (C) 2012 Nicolargo <nicolas@nicolargo.com>
#
# Glances is free software; you can redistribute it and/or modify
@ -23,12 +18,14 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# import os
# import time
# import signal
import unittest
import multiprocessing
import os
import signal
import time
import glances
from glances import glances
class TestGlancesStat(unittest.TestCase):

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
psutil==0.6.1

View File

@ -40,6 +40,7 @@ setup(
license="LGPL",
keywords="cli curses monitoring system",
long_description=open('README').read(),
test_suite="glances.tests",
install_requires=['psutil>=0.4.1'],
packages=['glances'],
extras_require={