bazelbuild/bazel

Allow env file with "bazel test"

Open

#955 aberto em 22 de fev. de 2016

Ver no GitHub
 (18 comments) (26 reactions) (0 assignees)Java (4.465 forks)batch import
P3help wantednot staleteam-Coretype: feature request

Métricas do repositório

Stars
 (25.384 stars)
Métricas de merge de PR
 (Mesclagem média 22d 20h) (77 fundiu PRs em 30d)

Description

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.

Guia do colaborador