diff --git a/.travis.yml b/.travis.yml index b7d1071c2..868de18f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,7 +49,7 @@ script: - haxelib run lime - haxelib - haxelib path lime - - haxelib run lime build HelloWorld html5 + - haxelib run lime build HelloWorld html5 -haxelib-debug - haxelib run lime build SimpleAudio html5 - haxelib run lime build SimpleImage html5 #- haxelib run lime build TextRendering html5 diff --git a/lime/project/HXProject.hx b/lime/project/HXProject.hx index 6ba94f65b..dcd33dfef 100644 --- a/lime/project/HXProject.hx +++ b/lime/project/HXProject.hx @@ -1133,7 +1133,7 @@ class HXProject { } else { var cache = LogHelper.verbose; - LogHelper.verbose = false; + LogHelper.verbose = HaxelibHelper.debug; var output = ""; try { diff --git a/lime/tools/helpers/HaxelibHelper.hx b/lime/tools/helpers/HaxelibHelper.hx index 16bd32a95..ecec83ce7 100644 --- a/lime/tools/helpers/HaxelibHelper.hx +++ b/lime/tools/helpers/HaxelibHelper.hx @@ -13,6 +13,7 @@ import sys.FileSystem; class HaxelibHelper { + public static var debug = false; public static var pathOverrides = new Map (); private static var repositoryPath:String; @@ -84,7 +85,7 @@ class HaxelibHelper { if (repositoryPath == null) { var cache = LogHelper.verbose; - LogHelper.verbose = false; + LogHelper.verbose = debug; var output = ""; try { @@ -155,7 +156,7 @@ class HaxelibHelper { if (!paths.exists (name)) { var cache = LogHelper.verbose; - LogHelper.verbose = false; + LogHelper.verbose = debug; var output = ""; try { diff --git a/tools/CommandLineTools.hx b/tools/CommandLineTools.hx index 03324415c..8cbc4c34c 100644 --- a/tools/CommandLineTools.hx +++ b/tools/CommandLineTools.hx @@ -2037,6 +2037,10 @@ class CommandLineTools { includePaths.push (argument.substr (2)); + } else if (argument == "-haxelib-debug") { + + HaxelibHelper.debug = true; + } else if (argument == "-args") { catchArguments = true;