Skip to content

Commit

Permalink
Add SKIP_CHECK_FORMAT environment variable to skip check_format when …
Browse files Browse the repository at this point in the history
…iterating locally. (#455)

It's somewhat distracting to be forced to fix_format while debugging.
  • Loading branch information
htuch authored and mattklein123 committed Feb 9, 2017
1 parent f44e437 commit 3bf1d94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ Envoy source tree.

* A `RUN_TEST_UNDER` environment variable is available to specify an executable to run the tests
under. For example, to run a subset of tests under `gdb`: `run_envoy_docker 'RUN_TEST_UNDER="gdb --args" UNIT_TEST_ONLY=1 ./ci/do_ci.sh debug --gtest_filter="*Dns*"'`.

* A `SKIP_CHECK_FORMAT` environment variable is available to skip `clang-format` checks while developing locally, e.g. `run_envoy_docker 'SKIP_CHECK_FORMAT=1 ./ci/do_ci.sh debug'`.
2 changes: 1 addition & 1 deletion ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ fi
shift
export EXTRA_TEST_ARGS="$@"

make check_format
[[ "$SKIP_CHECK_FORMAT" == "1" ]] || make check_format
make -j$NUM_CPUS $TEST_TARGET

0 comments on commit 3bf1d94

Please sign in to comment.