forked from firebase/firebase-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (51 loc) · 1.78 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
osx_image: xcode9.2
language: objective-c
cache:
- bundler
- cocoapods
rvm: 2.3.1
before_install:
# Add next line back with updated DeviceUDID for xcode9.1 if stability issues with simulator
# - open -a "simulator" --args -CurrentDeviceUDID ABBD7191-486B-462F-80B4-AE08C5820DA1
- bundle 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
- ./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
# - bundle exec pod lib lint FirebaseDatabase.podspec
# - bundle exec pod lib lint FirebaseMessaging.podspec --allow-warnings #pending #390 fix
# - bundle exec pod lib lint FirebaseStorage.podspec
# - bundle exec pod lib lint Firestore/Firestore.podspec
branches:
only:
- master