Skip to content

Commit

Permalink
ci: setup basic check format (#3)
Browse files Browse the repository at this point in the history
We can extend this for other languages, etc. in the future.

Signed-off-by: Matt Klein <[email protected]>
  • Loading branch information
mattklein123 authored Apr 18, 2019
1 parent 922df7e commit 56b5252
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
- run: docs/publish.sh
- store_artifacts:
path: generated/docs
format:
executor: ubuntu-build
# TODO(mattklein123): resource_class: small
steps:
- checkout
- run: git submodule update --init
- run: tools/check_format.sh

workflows:
version: 2
Expand All @@ -31,3 +38,4 @@ workflows:
filters:
tags:
only: /^v.*/
- format
2 changes: 2 additions & 0 deletions OWNERS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Envoy Mobile owners

* See [CONTRIBUTING.md](CONTRIBUTING.md) for general contribution guidelines.

This page lists all active maintainers and their areas of expertise. This can be used for
Expand Down
8 changes: 8 additions & 0 deletions tools/check_format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -e

export BUILDIFIER_BIN="/usr/local/bin/buildifier"

envoy/tools/check_format.py --add-excluded-prefixes=./envoy/ check
envoy/tools/format_python_tools.sh check

0 comments on commit 56b5252

Please sign in to comment.