-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (29 loc) · 1.7 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
language: objective-c
osx_image: xcode9.1
branches:
only:
- develop
- master
env:
- LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8
before_install:
- pod update
- gem update fastlane
- cp ./URLRemote/Resources/mock-GoogleService-Info.plist ./URLRemote/Resources/GoogleService-Info.plist
- cd ./URLRemote/Resources
- sed -i '' '/<key>AD_UNIT_ID_FOR_BANNER_TEST</{n;s/></>'$(echo "$AD_UNIT_ID_FOR_BANNER_TEST" | sed 's/\//\\\//g')'</;}' GoogleService-Info.plist
- sed -i '' '/<key>AD_UNIT_ID_FOR_INTERSTITIAL_TEST</{n;s/></>'$(echo "$AD_UNIT_ID_FOR_INTERSTITIAL_TEST" | sed 's/\//\\\//g')'</;}' GoogleService-Info.plist
- sed -i '' '/<key>CLIENT_ID</{n;s/></>'$(echo "$CLIENT_ID" | sed 's/\//\\\//g')'</;}' GoogleService-Info.plist
- sed -i '' '/<key>REVERSED_CLIENT_ID</{n;s/></>'$(echo "$REVERSED_CLIENT_ID" | sed 's/\//\\\//g')'</;}' GoogleService-Info.plist
- sed -i '' '/<key>API_KEY</{n;s/></>'$(echo "$API_KEY" | sed 's/\//\\\//g')'</;}' GoogleService-Info.plist
- sed -i '' '/<key>GCM_SENDER_ID</{n;s/></>'$(echo "$GCM_SENDER_ID" | sed 's/\//\\\//g')'</;}' GoogleService-Info.plist
- sed -i '' '/<key>PROJECT_ID</{n;s/></>'$(echo "$PROJECT_ID" | sed 's/\//\\\//g')'</;}' GoogleService-Info.plist
- sed -i '' '/<key>STORAGE_BUCKET</{n;s/></>'$(echo "$STORAGE_BUCKET" | sed 's/\//\\\//g')'</;}' GoogleService-Info.plist
- sed -i '' '/<key>GOOGLE_APP_ID</{n;s/></>'$(echo "$GOOGLE_APP_ID" | sed 's/\//\\\//g')'</;}' GoogleService-Info.plist
- sed -i '' '/<key>DATABASE_URL</{n;s/></>'$(echo "$DATABASE_URL" | sed 's/\//\\\//g')'</;}' GoogleService-Info.plist
- cd ../..
script:
- fastlane test
- swiftlint
after_success:
- bash <(curl -s https://codecov.io/bash) -J 'URLRemote' -X xcodeplist