Skip to content

Commit

Permalink
chore: added formatting check to circle-ci
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
  • Loading branch information
FUSAKLA committed Jan 14, 2019
1 parent 4e20faf commit 4a5f036
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ jobs:
- run: make deps DEPARGS="-v"
- run: make errcheck
- run: make check-docs
- run: make format
- run:
name: "Check code formating."
command: |
make format
if ! git diff --exit-code; then
echo "Code is not well formatted. Run 'make format' before pushing the code."
exit 1
fi
- run: make proto
- run:
name: "Run all tests"
# TODO(bplotka): Setup some S3 tests for CI.
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ $ git merge upstream/master
$ git checkout -b <your_branch_for_new_pr>
$ make build
$ <Iterate your development>
$ make format
$ git push origin <your_branch_for_new_pr>
```
5. If you don't have a live object store ready add these envvars to skip tests for these:
Expand Down

0 comments on commit 4a5f036

Please sign in to comment.