bazel: run the tests on all supported platforms
This commit is contained in:
parent
629c050b5d
commit
5d238e45de
@ -93,6 +93,8 @@ let
|
|||||||
# Java toolchain used for the build and tests
|
# Java toolchain used for the build and tests
|
||||||
javaToolchain = "@bazel_tools//tools/jdk:toolchain_host${buildJdkName}";
|
javaToolchain = "@bazel_tools//tools/jdk:toolchain_host${buildJdkName}";
|
||||||
|
|
||||||
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||||
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
@ -103,7 +105,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Build tool that builds code quickly and reliably";
|
description = "Build tool that builds code quickly and reliably";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.mboes ];
|
maintainers = [ maintainers.mboes ];
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
inherit platforms;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Additional tests that check bazel’s functionality. Execute
|
# Additional tests that check bazel’s functionality. Execute
|
||||||
@ -115,6 +117,7 @@ stdenv.mkDerivation rec {
|
|||||||
let
|
let
|
||||||
runLocal = name: attrs: script: runCommandCC name ({
|
runLocal = name: attrs: script: runCommandCC name ({
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
|
meta.platforms = platforms;
|
||||||
} // attrs) script;
|
} // attrs) script;
|
||||||
|
|
||||||
# bazel wants to extract itself into $install_dir/install every time it runs,
|
# bazel wants to extract itself into $install_dir/install every time it runs,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user