bazel_4: make some tests more verbose to help debugging

Co-Authored-By: Uri Baghin <33242106+uri-canva@users.noreply.github.com>
main
Yves-Stan Le Cornec 3 years ago
parent b147f2111d
commit b55758e4f5
  1. 4
      pkgs/development/tools/build-managers/bazel/bazel_4/default.nix
  2. 2
      pkgs/development/tools/build-managers/bazel/cpp-test.nix
  3. 2
      pkgs/development/tools/build-managers/bazel/java-test.nix
  4. 2
      pkgs/development/tools/build-managers/bazel/protobuf-test.nix

@ -490,6 +490,8 @@ stdenv.mkDerivation rec {
build --host_javabase='@local_jdk//:jdk'
build --host_java_toolchain='${javaToolchain}'
build --verbose_failures
build --curses=no
build --sandbox_debug
EOF
# add the same environment vars to compile.sh
@ -502,6 +504,8 @@ stdenv.mkDerivation rec {
-e "/\$command \\\\$/a --host_javabase='@local_jdk//:jdk' \\\\" \
-e "/\$command \\\\$/a --host_java_toolchain='${javaToolchain}' \\\\" \
-e "/\$command \\\\$/a --verbose_failures \\\\" \
-e "/\$command \\\\$/a --curses=no \\\\" \
-e "/\$command \\\\$/a --sandbox_debug \\\\" \
-i scripts/bootstrap/compile.sh
# This is necessary to avoid:

@ -44,6 +44,8 @@ let
${bazel}/bin/bazel \
build --verbose_failures \
--distdir=${distDir} \
--curses=no \
--sandbox_debug \
//...
'';
};

@ -50,6 +50,8 @@ let
--java_toolchain='@bazel_tools//tools/jdk:toolchain_hostjdk8' \
--javabase='@local_jdk//:jdk' \
--verbose_failures \
--curses=no \
--sandbox_debug \
//:ProjectRunner
'';
};

@ -169,6 +169,8 @@ let
--java_toolchain='@bazel_tools//tools/jdk:toolchain_hostjdk8' \
--javabase='@local_jdk//:jdk' \
--verbose_failures \
--curses=no \
--sandbox_debug \
//...
'';
};

Loading…
Cancel
Save