forked from Comcast/mamba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (25 loc) · 1.08 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
language: objective-c
osx_image: xcode10
env:
global:
- LANG=en_US.UTF-8
- PROJECT="mamba.xcodeproj"
- IOS_SCHEME="mamba"
- TVOS_SCHEME="mambaTVOS"
- OSX_SCHEME="mambaMacOS"
- IOS_SDK=iphonesimulator11.0
- TVOS_SDK=appletvsimulator11.0
- OSX_SDK=macosx10.13
matrix:
- DESTINATION="OS=12.0,name=iPhone X" SDK="$IOS_SDK" SCHEME="$IOS_SCHEME" RUN_TESTS="YES"
- DESTINATION="OS=12.0,name=Apple TV 4K" SDK="$TVOS_SDK" SCHEME="$TVOS_SCHEME" RUN_TESTS="YES"
- DESTINATION="arch=x86_64" SDK="$OSX_SDK" SCHEME="$OSX_SCHEME" RUN_TESTS="YES"
script:
- set -o pipefail
- if [ $RUN_TESTS == "YES" ]; then
xcodebuild analyze test -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | xcpretty -c;
else
xcodebuild build analyze -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | xcpretty -c;
fi
after_success:
- bash <(curl -s https://codecov.io/bash)