File tree 2 files changed +24
-5
lines changed 2 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,36 @@ before_install:
13
13
- bundle exec pod install --project-directory=Example --repo-update
14
14
- bundle exec pod install --project-directory=Firestore/Example --no-repo-update
15
15
- brew install clang-format
16
+ - echo "$TRAVIS_COMMIT_RANGE"
17
+ - echo "$TRAVIS_PULL_REQUEST"
18
+ - |
19
+ if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
20
+ SKIP_FIREBASE=0
21
+ SKIP_FIRESTORE=0
22
+ else
23
+ git diff --name-only $TRAVIS_COMMIT_RANGE | grep -Eq '^(Firebase|Example)'
24
+ SKIP_FIREBASE="$?"
25
+ git diff --name-only $TRAVIS_COMMIT_RANGE | grep -q Firestore
26
+ SKIP_FIRESTORE="$?"
27
+ fi
16
28
17
29
script :
18
30
- " ! git grep -I ' $'" # Fail on trailing whitespace in non-binary files
19
31
- ./scripts/style.sh test-only # Validate clang-format compliance
20
- - ./test.sh
32
+ - |
33
+ if [ $SKIP_FIREBASE != 1 ]; then
34
+ ./test.sh
35
+ fi
36
+ - |
37
+ if [ $SKIP_FIRESTORE != 1 ]; then
38
+ ./Firestore/test.sh
39
+ fi
21
40
22
41
# TODO fix os_log deprecation warning in FIRLogger to remove --allow-warnings
23
- - bundle exec pod lib lint FirebaseCore.podspec --allow-warnings
42
+ - |
43
+ if [ $SKIP_FIREBASE != 1 ]; then
44
+ bundle exec pod lib lint FirebaseCore.podspec --allow-warnings
45
+ fi
24
46
25
47
# TODO - Uncomment subsequent lines once FirebaseCore source repo is in public Specs repo
26
48
# - bundle exec pod lib lint FirebaseAuth.podspec
Original file line number Diff line number Diff line change @@ -70,6 +70,3 @@ if [ $RESULT != 0 ]; then exit $RESULT; fi
70
70
test_tvOS; RESULT=$?
71
71
72
72
if [ $RESULT != 0 ]; then exit $RESULT ; fi
73
-
74
- # Also test Firestore
75
- Firestore/test.sh
You can’t perform that action at this time.
0 commit comments