summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaolo Bonzini2017-07-18 02:31:29 +0200
committerAlex Bennée2017-07-18 10:39:19 +0200
commit6ca9f7fedbfe97bece72cd6eac0a8be4a9a3898a (patch)
treeb83a0ebec7770771766968d12a2382f9b1998263 /tests
parentMerge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' int... (diff)
downloadqemu-6ca9f7fedbfe97bece72cd6eac0a8be4a9a3898a.tar.gz
qemu-6ca9f7fedbfe97bece72cd6eac0a8be4a9a3898a.tar.xz
qemu-6ca9f7fedbfe97bece72cd6eac0a8be4a9a3898a.zip
docker: allow customizing Travis global_env variables
This is useful so that we can do builds at higher than -j3 when running travis.py locally. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/docker/travis.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/docker/travis.py b/tests/docker/travis.py
index 8dcc964da4..703a7fde85 100755
--- a/tests/docker/travis.py
+++ b/tests/docker/travis.py
@@ -21,13 +21,12 @@ def load_yaml(fname):
def conf_iter(conf):
def env_to_list(env):
return env if isinstance(env, list) else [env]
- global_env = conf["env"]["global"]
for entry in conf["matrix"]["include"]:
- yield {"env": global_env + env_to_list(entry["env"]),
+ yield {"env": env_to_list(entry["env"]),
"compiler": entry["compiler"]}
for entry in itertools.product(conf["compiler"],
conf["env"]["matrix"]):
- yield {"env": global_env + env_to_list(entry[1]),
+ yield {"env": env_to_list(entry[1]),
"compiler": entry[0]}
def main():
@@ -35,6 +34,7 @@ def main():
sys.stderr.write("Usage: %s <travis-file>\n" % sys.argv[0])
return 1
conf = load_yaml(sys.argv[1])
+ print "\n".join((": ${%s}" % var for var in conf["env"]["global"]))
for config in conf_iter(conf):
print "("
print "\n".join(config["env"])