forked from wayfair-archive/brickkit-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (26 loc) · 1.46 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
language: objective-c
osx_image: xcode8
env:
global:
- WORKSPACE=BrickKit.xcworkspace
- IOS_FRAMEWORK_SCHEME="BrickKit"
- TVOS_FRAMEWORK_SCHEME="BrickKit-tvOS"
- IOS_SDK=iphonesimulator10.0
- TVOS_SDK=appletvsimulator10.0
- IOS_EXAMPLE_SCHEME="BrickApp-iOS"
- TVOS_EXAMPLE_SCHEME="BrickApp-tvOS"
matrix:
- DESTINATION="OS=9.0,name=iPhone 5" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" EXAMPLE_SCHEME="$IOS_EXAMPLE_SCHEME"
- DESTINATION="OS=10.0,name=iPhone 7 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" EXAMPLE_SCHEME="$IOS_EXAMPLE_SCHEME"
- DESTINATION="OS=9.0,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" EXAMPLE_SCHEME="$TVOS_EXAMPLE_SCHEME"
- DESTINATION="OS=10.0,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" EXAMPLE_SCHEME="$TVOS_EXAMPLE_SCHEME"
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
# Build Framework in Debug and Run Tests if specified
- travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
# Build Example in Debug
- travis_retry xcodebuild -workspace "$WORKSPACE" -scheme "$EXAMPLE_SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
after_success:
- bash <(curl -s https://codecov.io/bash) -J 'BrickKit'