Explorar o código

Add nose-progressive lib to try to avoid travis stdout timeouts on py36

Enis Afgan %!s(int64=7) %!d(string=hai) anos
pai
achega
fc9194b3e4
Modificáronse 3 ficheiros con 6 adicións e 2 borrados
  1. 1 0
      setup.cfg
  2. 1 0
      setup.py
  3. 4 2
      tox.ini

+ 1 - 0
setup.cfg

@@ -13,6 +13,7 @@ process-timeout=3000
 match=^[Tt]est 
 # Don't capture stdout - print immediately
 nocapture=1
+logging-filter=cloudbridge
 
 [bdist_wheel]
 universal = 1

+ 1 - 0
setup.py

@@ -43,6 +43,7 @@ REQS_DEV = ([
     'moto>=1.3.2',
     'sphinx>=1.3.1',
     'pydevd',
+    'nose-progressive',
     'flake8>=3.3.0',
     'flake8-import-order>=0.12'] + REQS_FULL
 )

+ 4 - 2
tox.ini

@@ -16,9 +16,11 @@ envlist = {py27,py36,pypy}-{aws,azure,openstack}
 
 [testenv]
 commands = flake8 cloudbridge test setup.py
-           # see setup.cfg for options sent to nosetests and coverage
-           {envpython} setup.py nosetests -s --logging-filter=cloudbridge --logging-format='%(asctime)s [%(levelname)s] %(name)s: %(message)s' {posargs}
+           # see setup.cfg for more options being sent to nosetests and coverage
+           nosetests --with-progressive --logging-format='%(asctime)s [%(levelname)s] %(name)s: %(message)s' {posargs}
 setenv =
+    TERM=linux
+    TERMINFO=/etc/terminfo
     MOTO_AMIS_PATH=./test/fixtures/custom_amis.json
     aws: CB_TEST_PROVIDER=aws
     azure: CB_TEST_PROVIDER=azure