Browse Source

Dependencies moved to the requirements.txt, travis config changed

pull/6087/head
maxkoryukov 9 years ago
parent
commit
94ec30fc2e
  1. 14
      .travis.yml
  2. 8
      CouchPotato.py
  3. 5
      py-dev-requirements.txt
  4. 12
      requirements-dev.txt

14
.travis.yml

@ -1,5 +1,8 @@
language: python
# with enabled SUDO the build goes slower
sudo: false
python:
# - "2.6"
- "2.7"
@ -15,18 +18,13 @@ cache:
directories:
- node_modules
- libs
- lib
# command to install dependencies
install:
- npm install
- pip install --upgrade pip
- pip install coverage
- pip install coveralls
# disabled, since we don't require colors for tests on travis
- pip install --upgrade nose
# - pip install rednose
- nosetests --plugins
- npm install
- pip install -r requirements-dev.txt -t ./libs
# command to run tests
script:

8
CouchPotato.py

@ -52,7 +52,7 @@ class Loader(object):
os.makedirs(self.data_dir)
# Create logging dir
self.log_dir = os.path.join(self.data_dir, 'logs');
self.log_dir = os.path.join(self.data_dir, 'logs')
if not os.path.isdir(self.log_dir):
os.makedirs(self.log_dir)
@ -96,8 +96,10 @@ class Loader(object):
# remove old pidfile first
try:
if self.runAsDaemon():
try: self.daemon.stop()
except: pass
try:
self.daemon.stop()
except:
pass
except:
self.log.critical(traceback.format_exc())

5
py-dev-requirements.txt

@ -1,5 +0,0 @@
nose
rednose
nose-htmloutput
coverage
coveralls

12
requirements-dev.txt

@ -0,0 +1,12 @@
# development requirements
mock>=1.3.0
nose>=1.3.1
nose-exclude>=0.4.1
nose-htmloutput>=0.6.0
coverage
coveralls
pep8>=1.4.6
# you could disable it on travis
rednose>=0.4.0
Loading…
Cancel
Save