diff options
author | Chen Liang <chliang@google.com> | 2018-01-24 12:26:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 12:26:08 -0800 |
commit | fa81c488551575d65fd681e08ff417f354f54e75 (patch) | |
tree | 3544f4504c196bf1244a527596a65f66a9f43d30 /.travis.yml | |
parent | 4125066bb468f130fe5165cb9188c1ab53c99384 (diff) | |
parent | 8f0c3254632db38ad1dd040b395aaf8f55042fd9 (diff) |
Merge branch 'master' into messaging-copy
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 351bb85..a2719b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -osx_image: xcode9.1 +osx_image: xcode9.2 language: objective-c cache: - bundler @@ -12,11 +12,37 @@ 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 + - echo "$TRAVIS_COMMIT_RANGE" + - echo "$TRAVIS_PULL_REQUEST" + - | + if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then + SKIP_FIREBASE=0 + SKIP_FIRESTORE=0 + else + git diff --name-only $TRAVIS_COMMIT_RANGE | grep -Eq '^(Firebase|Example)' + SKIP_FIREBASE="$?" + git diff --name-only $TRAVIS_COMMIT_RANGE | grep -q Firestore + SKIP_FIRESTORE="$?" + fi script: - "! git grep -I ' $'" # Fail on trailing whitespace in non-binary files - - ./test.sh - - bundle exec pod lib lint FirebaseCore.podspec + - ./scripts/style.sh test-only # Validate clang-format compliance + - | + if [ $SKIP_FIREBASE != 1 ]; then + ./test.sh + fi + - | + if [ $SKIP_FIRESTORE != 1 ]; then + ./Firestore/test.sh + fi + +# TODO fix os_log deprecation warning in FIRLogger to remove --allow-warnings + - | + if [ $SKIP_FIREBASE != 1 ]; then + bundle exec pod lib lint FirebaseCore.podspec --allow-warnings + fi # TODO - Uncomment subsequent lines once FirebaseCore source repo is in public Specs repo # - bundle exec pod lib lint FirebaseAuth.podspec |