Browse Source

Only the Continuous Integration is verbose

pull/149/head
Oliverpool 9 years ago
parent
commit
55d0689852
  1. 6
      test/test_compilation/test_compilation.py
  2. 2
      tox.ini

6
test/test_compilation/test_compilation.py

@ -112,10 +112,14 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
@staticmethod
def compile_songbook(songbook, steps=None):
"""Compile songbook, and return the command return code."""
command = [sys.executable, '-m', 'patacrep.songbook', songbook, '-v']
command = [sys.executable, '-m', 'patacrep.songbook', songbook]
if steps:
command.extend(['--steps', steps])
# Continuous Integration will be verbose
if 'CI' in os.environ:
command.append('-v')
try:
subprocess.check_call(
command,

2
tox.ini

@ -7,7 +7,7 @@ envlist = py34, lint
[testenv]
commands = {envpython} setup.py test
passenv = TRAVIS APPVEYOR
passenv = TRAVIS APPVEYOR CI
deps =
[testenv:lint]

Loading…
Cancel
Save