Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleSteps to build ONOS with a web proxy
export HTTPS_PROXY=https://<proxy address>:<proxy port>
export HTTP_PROXY=http://<proxy address>:<proxy port>


bazel build onos --action_env=HTTP_PROXY=$HTTP_PROXY

Executing ONOS unit tests behind a web proxy

Bazel supports executing unit tests behind a web proxy. Here are the steps to test with a proxy:

Code Block
languagebash
titleSteps to test ONOS with a web proxy
export HTTPS_PROXY=https://<proxy address>:<proxy port>
export HTTP_PROXY=http://<proxy address>:<proxy port>


bazel query 'tests(//...)' | xargs bazel test --action_env=HTTP_PROXY=$HTTP_PROXY