From 55d06898524a07a61bc069fbdbd9aded7efe4880 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Mon, 2 Nov 2015 12:52:32 +0100 Subject: [PATCH] Only the Continuous Integration is verbose --- test/test_compilation/test_compilation.py | 6 +++++- tox.ini | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/test_compilation/test_compilation.py b/test/test_compilation/test_compilation.py index 240acaf9..11067c55 100644 --- a/test/test_compilation/test_compilation.py +++ b/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, diff --git a/tox.ini b/tox.ini index 99c71416..10fb9b9b 100644 --- a/tox.ini +++ b/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]