Skip to content

Commit

Permalink
add verbose flag for building tests
Browse files Browse the repository at this point in the history
Enables easier debugging of Travis
  • Loading branch information
jamesadevine committed Sep 26, 2019
1 parent 565eaf1 commit 983084c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.py
Expand Up @@ -160,4 +160,4 @@
with open("../codal.json", 'w') as codal_json:
json.dump(config, codal_json, indent=4)

build(True)
build(True, True)
7 changes: 5 additions & 2 deletions utils/python/codal_utils.py
Expand Up @@ -14,7 +14,7 @@ def system(cmd):
if os.system(cmd) != 0:
sys.exit(1)

def build(clean):
def build(clean, verbose = False):
if platform.system() == "Windows":
# configure
system("cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -G \"Ninja\"")
Expand All @@ -29,7 +29,10 @@ def build(clean):
system("make clean")

# build
system("make -j 10")
if verbose:
system("make -j 10 VERBOSE=1")
else:
system("make -j 10")

def read_json(fn):
json_file = ""
Expand Down

0 comments on commit 983084c

Please sign in to comment.