Commit Graph
42 Commits
Author SHA1 Message Date
Gil 602c262c6b Add remaining tests to Xcode (#1256)
* Add classes in testutil and util to the project

  * Exclude util/iterator_adaptors_test which requires gmock
  * Exclude remote/serializer_test which is missing some paths

* Add iterator_adaptors_test and add gmock support

  * Add gmock support to the GoogleTest podspec we vendor
  * Add iterator_adaptors_test.cc to the Xcode project

* Add a script that verifies all tests are referenced in the project

* Add a travis check that all tests are referenced in the project

* Review feedback

* Moar feedback
2018-05-10 10:22:38 -07:00
Paul Beusterien 53b8664439 Add back pod spec lint checking (#1252)
* Add back pod spec lint checking
* Separate pod lib lint to stages
* order unit tests before lints
* add lint to install_prereqs and remove default
* consolidate pod_install and install_prereqs scripts
* workaround travis 10 minute timeout for Firestore lint
2018-05-09 19:23:38 -07:00
Paul Beusterien bb8c87a028 merge 2018-05-08 10:59:19 -07:00
Gil a080e481b5 Port FSTDocumentKeySet to C++ DocumentKeySet (#1229)
* Define a Comparator for DocumentKey

* Automated migration from FSTDocumentKeySet to DocumentKeySet

* Manual fixups for DocumentKeySet

* Delete FSTDocumentKeySet
2018-05-05 08:10:51 -07:00
Gil 0e598bbba2 Build Firestore integration tests (#1211)
We can't necessarily run them yet, but at least verify they build
2018-05-03 15:21:07 -07:00
Paul Beusterien 7dd3ee0272 Add Firebase version tag (#1205) 2018-05-01 07:21:15 -07:00
Paul Beusterien 7707f37c77 Updates for push-pods script (#1184) 2018-04-25 12:26:47 -07:00
Paul Beusterien a19773b9f3 pod lib lint status (#1160) 2018-04-25 08:34:10 -07:00
Paul Beusterien fbd5acb785 Temporary 5.0.0 release management scripts (#1133) 2018-04-25 08:34:10 -07:00
rsgowman 6dfc142888 Adjust serializer test to verify via libprotobuf. (#1039)
Previously, the tests would compare serialization results against a
precomputed (via protoc) array of bytes. Now they serialize via our
nanopb based class and deserialize via libprotobuf (and vice versa) and
then ensure the result is the same as the input
2018-04-24 11:31:58 -04:00
Konstantin Varlamov 758b29aec4 Firestore Travis: add test runs using sanitizers (#1128)
Also move most of `before_install` actions from Travis config into scripts to reduce duplication.
2018-04-23 14:11:27 -04:00
Paul Beusterien ede57f84bb Add missing copyright and licenses (#1152) 2018-04-20 11:54:53 -07:00
Gil 83a309df0a Rename iOS-specific targets with iOS-specific names (#1150)
* Rename targets:
  * Firestore_Example to Firestore_Example_iOS
  * Firestore_Tests to Firestore_Tests_iOS
  * Firestore_IntegrationTests to Firestore_IntegrationTests_iOS
  * AllTests to AllTests_iOS

* Rename associated schemes the same way

* Update Podfile to reference the new targets
2018-04-20 09:57:31 -07:00
Konstantin Varlamov 2320ba4837 Firestore Travis: ensure CTest outputs the log on failure. (#1118)
In CMake build of Firestore, configure CTest so that upon failure, it
prints out the full log of the failing test(s).
2018-04-18 12:52:43 -04:00
Konstantin Varlamov 257d833efc Travis: trigger rebuild if Travis config or build scripts have changed. (#1121) 2018-04-16 21:54:51 -04:00
Gil 33701fbc9c Fix the build and travis change detection (#1117)
* Fix typo in main.swift

* Fix change detection for Firestore in Travis
2018-04-16 14:46:03 -07:00
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