bazel: run the tests on all supported platforms

This commit is contained in:
Profpatsch 2019-06-11 21:51:01 +02:00
parent 629c050b5d
commit 5d238e45de

View File

@ -93,6 +93,8 @@ let
# Java toolchain used for the build and tests
javaToolchain = "@bazel_tools//tools/jdk:toolchain_host${buildJdkName}";
platforms = lib.platforms.linux ++ lib.platforms.darwin;
in
stdenv.mkDerivation rec {
@ -103,7 +105,7 @@ stdenv.mkDerivation rec {
description = "Build tool that builds code quickly and reliably";
license = licenses.asl20;
maintainers = [ maintainers.mboes ];
platforms = platforms.linux ++ platforms.darwin;
inherit platforms;
};
# Additional tests that check bazels functionality. Execute
@ -115,6 +117,7 @@ stdenv.mkDerivation rec {
let
runLocal = name: attrs: script: runCommandCC name ({
preferLocalBuild = true;
meta.platforms = platforms;
} // attrs) script;
# bazel wants to extract itself into $install_dir/install every time it runs,