-
Notifications
You must be signed in to change notification settings - Fork 40
/
.travis.yml
29 lines (25 loc) · 1.1 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: xcode11
env:
global:
- LANG=en_US.UTF-8
- PROJECT="mamba.xcodeproj"
- IOS_SCHEME="mamba"
- TVOS_SCHEME="mambaTVOS"
- OSX_SCHEME="mambaMacOS"
- IOS_SDK=iphonesimulator13.0
- TVOS_SDK=appletvsimulator13.0
- OSX_SDK=macosx10.15
matrix:
- DESTINATION="OS=13.0,name=iPad Air (3rd generation)" SDK="$IOS_SDK" SCHEME="$IOS_SCHEME" RUN_TESTS="YES"
- DESTINATION="OS=13.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)