This repository has been archived by the owner on Aug 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 117
/
.travis.yml
28 lines (28 loc) · 1.27 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
language: objective-c
os: osx
osx_image: xcode12
cache:
directories:
- Carthage
before_install:
# Wake simulator device to avoid timeout:
- export IOS_SIMULATOR_UDID=`instruments -s devices | grep "iPhone 8.*13" | ruby -e "puts gets.match(/[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}/)"`
- echo $IOS_SIMULATOR_UDID
- open -b com.apple.iphonesimulator --args -CurrentDeviceUDID $IOS_SIMULATOR_UDID
# Cache the built frameworks to compilation time:
- bin/carthage_build --platform iOS --no-use-binaries --cache-builds
# Fake Firebase config for project compile. Valid since such file is not used for tests:
- cp AppIdentities/OneBusAway/OBAProperties.plist AppIdentities/OneBusAway/GoogleService-Info.plist
script: set -o pipefail && xcodebuild clean test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -project org.onebusaway.iphone.xcodeproj -scheme OneBusAway -sdk iphonesimulator -destination "platform=iOS Simulator,id=$IOS_SIMULATOR_UDID" ONLY_ACTIVE_ARCH=NO | xcpretty
notifications:
slack:
rooms:
- onebusaway:kcIbPpOOuJEhNgpzWMd8gkqj
on_success: change
on_failure: always
webhooks:
urls:
- https://webhooks.gitter.im/e/30e6e2d8791d3099cbe5
on_success: always
on_failure: always
on_start: always