Commit Graph
26 Commits
Author SHA1 Message Date
Gil 0a66187053 Add lint checking for Objective-C++ sources (#1048)
* lint.sh now lints Objective-C++ too

* cpplint checks system-style includes that should be user-style

This prevents it from recognizing project sources as if they were C
system headers and then complaining that they're in the wrong place.

* cpplint checks #imports and #includes

* cpplint checks that C++ system headers aren't #imported

* cpplint checks for C system headers that could be C++ system headers

* cpplint checks that Objective-C sources include their headers
2018-04-09 11:54:39 -07:00
Paul Beusterien 42bc113754 Travis static library testing (#1047)
* Add Objective C example app for Messaging
* Travis static library testing
* static lib build fixes
2018-04-09 09:11:21 -07:00
Gil 45e68a352d Clean up usages of std::make_unique that crept in (#996)
* Add std::make_unique rule

* Clean up usages of std::make_unique that crept in

This fails to build under Xcode 8.2
2018-03-29 13:23:41 -07:00
Ben Hamilton (Ben Gertzfield) cb1f65dfcf Migrate Firebase off ObjC module @import statements (#992)
* Migrate Firebase off @import statements

* - Migrate tests and test utils from @import to #import.
  - Update Xcode projects for tests to explicitly link in framework deps.
  - Update check_no_module_imports.sh to look for @imports in tests/test utils/
    integration tests.

* Ensure check_no_module_imports.sh explicitly exits with code 0 on success.
2018-03-29 08:44:48 -07:00
zxu c1c9fecb6f fix style.sh (#966) 2018-03-22 19:46:20 -04:00
Paul Beusterien 51ffae2650 Run Functions Unit Tests on travis (#954) 2018-03-21 08:16:26 -07:00
Zsika Phillip 1395c8202b Adds exception for invalid parameter (#931)
* Adds exception for invalid parameter

* Account for differences between find and git output (#932)
2018-03-15 23:28:52 -07:00
Gil 24c4ea8d87 Parallelize the Travis run using build stages (#886)
Parallelize the travis run using build stages

https://docs.travis-ci.com/user/build-stages/

This will run source checks first (style, lint) and then if all pass,
kick off all platforms and builds in parallel.
2018-03-10 14:08:20 -08:00
Gil b7750b588c Speed up source checks in Travis (#885)
* Factor out a whitespace checking script

* Factor out a copyright checking script

* Rewrite lint.sh to honor revision ranges

* Only restyle files that are part of the PR

* Run C++ lint before builds to fail faster

* Git grep doesn't operate on revision ranges

* style.sh accepts clang-format 6 or 7
2018-03-07 09:59:38 -08:00
Gil 5930ad2fee Factor out a universal build script (#884)
* Add a universal build script

* Rewrite test.sh in terms of universal build
2018-03-07 08:44:54 -08:00
Gil ac06a94ace Auto-style swift sources (#847)
* Fix bash style issues

* Exclude additional build output directories

* Format swift files with scripts/style.sh

* Reformat swift sources

* Allow swiftformat 0.32.0 on travis
2018-02-26 10:51:58 -08:00
Rich Gowman d29a6db896 style.sh now ignores generated nanopb files 2018-02-06 10:02:30 -05:00
Gil 856c3a09f1 Add the C++ linter to the repo (#720) 2018-01-27 16:13:14 -08:00
Paul Beusterien c4feb513be style.sh - output unformatted files in test-only and ignore generated config.h (#690) 2018-01-21 13:48:26 -08:00
Gil 128e9cb170 Fix C++ lint errors (#668)
* Misc style.sh fixes

  * Allow test-only to use a revision; to check your changes since
    master:

    ./scripts/style.sh test-only master
  * Avoid diffing deleted files
  * 80 columns

* Fix C++ lint errors
2018-01-17 10:02:42 -08:00
Paul Beusterien b5454f1a91 Validate clang-format compliance in travis (#648) 2018-01-13 14:53:10 -08:00
Paul Beusterien 91ac9c069d Add test-only option to style.sh (#642) 2018-01-10 19:06:42 -08:00
Michael Lehenbauer 4dd07c6ea0 Add version check to style.sh to make sure folks are running the same version. (#638) 2018-01-10 10:11:46 -08:00
Gil 87ae4f3ecb Fix scripts/style.sh diffs relative to branch name (#608) 2018-01-02 15:04:05 -08:00
Gil 81d2f97b2e Allow clang-format to find Firestore/Source/Auth (#508)
* Avoid pruning paths with find

find . -path foo -path bar -path baz is horrifically inefficient;
properly excluding all of FirebaseAuth without excluding
Firestore/Source/Auth ends up taking 1.5 minutes on my machine.

Deleting via sed is much faster.

* Allow a branch name or filenames to be specified on the command line

e.g. ./scripts/style.sh master formats only files changed since master.

* Format Firebase/Source/Auth code

* Use alternate delimeter for path regexen
2017-11-30 09:10:58 -08:00
Gil 5fbad1b2e2 Additional support for C++ sources in Firestore (#462)
* Fix up style from previous PRs
* Clang-format configuration for C++ files
* Add support C++-only sources to the podspec
2017-11-16 12:05:19 -08:00
Sebastian Schmidt 110f0edf9d Clang-formatting Storage 2017-11-09 17:51:21 -08:00
Gil fc9b5447fc Clang-format Objective-C++ too (#419) 2017-11-07 09:42:39 -08:00
Gil bde743ed25 Release 4.3.0 (#327)
Initial release of Firestore at 0.8.0
Bump FirebaseCommunity to 0.1.3
2017-10-03 08:55:22 -07:00
Tejas Deshpande e69e62beb2 Add Apache 2.0 license header to style.sh (#266) 2017-09-13 15:57:52 -07:00
Paul Beusterien 0abd344434 Add clang-format options and script; apply to FirebaseCore (#151) 2017-07-27 11:02:39 -07:00