Chromium Code Reviews| Index: blimp/BUILD.gn |
| diff --git a/blimp/BUILD.gn b/blimp/BUILD.gn |
| index 14408f934809126833c08aa239b194013a9995a5..65784dc3e40698baec0dff69e62c48f9a9e379d7 100644 |
| --- a/blimp/BUILD.gn |
| +++ b/blimp/BUILD.gn |
| @@ -137,4 +137,42 @@ if (is_linux) { |
| ":blimp_engine_env_tests_group", |
| ] |
| } |
| + |
| + # Builds and bundles the tests into a tarball that can be used to build a |
| + # Docker image. |
| + action("blimp_engine_env_tests_bundle") { |
| + testonly = true |
| + script = "//blimp/tools/bundle.py" |
| + |
| + # These form the arguments to the script. |
| + _rebased_out_dir = rebase_path(root_out_dir) |
| + _rebased_dockerfile = rebase_path("//blimp/Dockerfile") |
| + _bundle = "$root_out_dir/blimp_engine_env_tests_bundle.tar.gz" |
| + |
| + # Depending on this ensures that both the manifest is generated |
| + # and everything in the manifest has been built. |
|
Wez
2016/06/06 23:52:15
nit: ... everything listed in the ...
Jess
2016/06/07 00:28:37
Done.
|
| + deps = [ |
| + ":generate_blimp_engine_env_tests_manifest", |
| + ] |
| + |
| + sources = [ |
| + _blimp_engine_env_tests_manifest, |
| + _rebased_dockerfile, |
| + ] |
| + outputs = [ |
| + _bundle, |
| + ] |
| + |
| + # Manually specify the actual arguments to the script. |
|
Wez
2016/06/06 23:52:15
nit: This comment seems superfluous - isn't this h
Jess
2016/06/07 00:28:37
Removed.
|
| + args = [ |
| + "--build-dir", |
| + _rebased_out_dir, |
| + "--dockerfile", |
| + _rebased_dockerfile, |
| + "--manifest", |
| + _rebased_blimp_engine_env_tests_manifest, |
| + "--output", |
| + rebase_path(_bundle), |
| + ] |
| + } |
| } |