bazelbuild/bazel

Allow env file with "bazel test"

Open

#955 geöffnet am 22. Feb. 2016

Auf GitHub ansehen
 (18 Kommentare) (26 Reaktionen) (0 zugewiesene Personen)Java (4.465 Forks)batch import
P3help wantednot staleteam-Coretype: feature request

Repository-Metriken

Stars
 (25.384 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 22T 20h) (77 gemergte PRs in 30 T)

Beschreibung

Currently, you can pass environment variables one at a time with --test_env. It would be nice to be able to pass an entire file of env variables to bazel test with something like:

bazel test --test_env_file=.env //...

env are becoming semi-standard, and lots of tools understand how to read them. For example:

This improvement would allow people to use their existing env files with bazel.

Contributor Guide