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