forked from googlesamples/google-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (27 loc) · 841 Bytes
/
.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
osx_image: xcode8.1
language: objective-c
cache:
- bundler
- cocoapods
podfile: ios/analytics/Podfile
env: SAMPLE=Analytics
matrix:
include:
- podfile: ios/gcm/Podfile
env: SAMPLE=Gcm
- podfile: ios/signin/Podfile
env: SAMPLE=SignIn
rvm: 2.3.1
before_install:
- gem uninstall cocoapods -a
- gem install cocoapods -v '1.1.1'
- gem install xcpretty
- cd ios/$SAMPLE
- pod install --repo-update
- cp ../mock-GoogleService-Info.plist ./GoogleService-Info.plist
- sed -i '' '/<key>BUNDLE_ID</{n;s/id/com.google.samples.quickstart.'$SAMPLE'Example/;}' GoogleService-Info.plist
- sed -i '' 's/YOUR_REVERSED_CLIENT_ID/com.googleusercontent.apps.123456789000-hjugbg6ud799v4c49dim8ce2usclthar/' "$SAMPLE"Example/Info.plist
- gem install xcodeproj
- ruby ../info_script.rb $SAMPLE
- cd -
script: ios/test.sh