Skip to content

Validate clang-format compliance in travis #648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ before_install:
- gem install xcpretty
- bundle exec pod install --project-directory=Example --repo-update
- bundle exec pod install --project-directory=Firestore/Example --no-repo-update
- brew install clang-format

script:
- "! git grep -I ' $'" # Fail on trailing whitespace in non-binary files
- ./scripts/style.sh test-only # Validate clang-format compliance
- ./test.sh

# TODO fix os_log deprecation warning in FIRLogger to remove --allow-warnings
Expand Down
3 changes: 3 additions & 0 deletions scripts/style.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ fi
\%/third_party/% d
\%/Firestore/Port/% d

# Sources pulled in by travis bundler
\%/vendor/bundle/% d

# Sources within the tree that are not subject to formatting
\%^./(Example|Firebase)/(Auth|AuthSamples|Database|Messaging)/% d

Expand Down