-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
27 lines (23 loc) · 1.28 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
osx_image: xcode9.4
language: objective-c
# Handle git submodules yourself
# http://stackoverflow.com/a/24600210/805882
git:
submodules: false
# Use sed to replace the SSH URL with the public URL, then initialize submodules
before_install:
- sed -i -e 's/[email protected]:/git:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- export IOS_SIMULATOR_UDID=`instruments -s devices | grep -m 1 "iPhone 8 (11" | awk -F '[ ]' '{print $4}' | awk -F '[\[]' '{print $2}' | sed 's/.$//'`
- echo $IOS_SIMULATOR_UDID
install:
# - mkdir Submodules/iBurn-Data/data/2016/2016
- echo -e "#define MAPBOX_ACCESS_TOKEN test\n" > ./iBurn/InfoPlistSecrets.h
- echo -e "NSString * const kBRCHockeyBetaIdentifier = @\"\";\nNSString * const kBRCHockeyLiveIdentifier = @\"\";\nNSString * const kBRCEmbargoPasscodeSHA256Hash = @\"\";\nNSString * const kBRCUpdatesURLString = @\"\";\nNSString * const kBRCMapBoxStyleURL = @\"https://example.com\";\nNSString * const kBRCMapBoxAccessToken = @\"\";\n" > ./iBurn/BRCSecrets.m
before_script:
- bundle install
- bundle exec pod repo update --silent
- bundle exec pod install
script:
- set -o pipefail
- xcodebuild -workspace iBurn.xcworkspace -scheme iBurn -sdk iphonesimulator -destination "id=$IOS_SIMULATOR_UDID" build | xcpretty -c